Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
テストはメンバーだけでなく 自分も救う!?@CakeJP 2023/12/13 エンジニア小話...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Tsubasa
December 21, 2023
0
270
テストはメンバーだけでなく 自分も救う!?@CakeJP 2023/12/13 エンジニア小話会 PHPを語り合おう
LTに登壇したときのスライドです
Tsubasa
December 21, 2023
Tweet
Share
More Decks by Tsubasa
See All by Tsubasa
日常をハックする AI活用術!?
tsusk8
0
270
Featured
See All Featured
A better future with KSS
kneath
240
18k
Designing for Performance
lara
610
70k
Discover your Explorer Soul
emna__ayadi
2
1.1k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
250
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
120
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
56
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
120
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
71
The Cost Of JavaScript in 2023
addyosmani
55
9.5k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
170
We Have a Design System, Now What?
morganepeng
54
8k
Transcript
© Cake.jp Co.Ltd. All Right Reserved.|Confidential 2023/12/13 テストはメンバーだけでなく 自分も救う!?
氏名 福井翼
2 © Cake.jp Co.Ltd. All Right Reserved.|Confidential 自己紹介 • 名前
◦ 福井翼 • 業務 ◦ to C向けの機能開発 ◦ 不具合改修 • おすすめ🍰 ◦ バスクチーズケーキ
3 © Cake.jp Co.Ltd. All Right Reserved.|Confidential 単体テストを書くのは 好きですか? (LT本編)
4 © Cake.jp Co.Ltd. All Right Reserved.|Confidential (LT本編)
5 © Cake.jp Co.Ltd. All Right Reserved.|Confidential 単体テストを書くことで リファクタした実体験を 話していきます!
(LT本編)
6 © Cake.jp Co.Ltd. All Right Reserved.|Confidential どんな実装をしたの? 複数の割引条件で計算を行い、
一番料金が安くなるものを返す (LT本編)
7 © Cake.jp Co.Ltd. All Right Reserved.|Confidential もう少し具体的にすると データタイプに合わせた計算結果を返すという内容です。 (LT本編)
8 © Cake.jp Co.Ltd. All Right Reserved.|Confidential (LT本編)
9 © Cake.jp Co.Ltd. All Right Reserved.|Confidential チームのエンジニアメンバーに設 計レビューを行いました! (LT本編)
10 © Cake.jp Co.Ltd. All Right Reserved.|Confidential (LT本編)
11 © Cake.jp Co.Ltd. All Right Reserved.|Confidential リリース直前の確認でバグが見つかり、 その日にリリースは出来ませんでした。。。 (LT本編)
12 © Cake.jp Co.Ltd. All Right Reserved.|Confidential (LT本編)
13 © Cake.jp Co.Ltd. All Right Reserved.|Confidential • 得られた知見 ◦
適切なクラスのみ単体テストを書くことで、リファクタを行いやすくなる ◦ にモックを使わないと、テストするべきところが出来ない ◦ 適切なテストは他の人だけでなく、自分も救う まとめ