Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
ユニットテストあるある.pdf
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
[mediba] Yasufumi Moritake
June 24, 2016
Programming
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ユニットテストあるある.pdf
[mediba] Yasufumi Moritake
June 24, 2016
Other Decks in Programming
See All in Programming
SREの越境 / SRE Collaboration
y0hgi
2
310
Optunaを作ったときにやりたかったこと、その後 (2026/10/16, Optuna Meetup #3)
iwiwi
1
430
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
210
Verilogで学ぶCPU自作入門
uyuki234
8
4.1k
個人開発者よ、Honoを使え(おじさんver)
tanahiro2010
2
260
ジョジョの世界をXRで再現する
mofurune
0
160
JIS keyboard support in Omarchy
lef237
0
110
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
430
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
150
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
270
Kotlinの15年とServer-Side Kotlin
n_takehata
1
150
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
180
Featured
See All Featured
Believing is Seeing
oripsolob
1
240
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
480
Tell your own story through comics
letsgokoyo
1
1.1k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.7k
The Limits of Empathy - UXLibs8
cassininazir
2
720
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
500
First, design no harm
axbom
PRO
2
1.3k
A Modern Web Designer's Workflow
chriscoyier
699
190k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.8k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
Six Lessons from altMBA
skipperchong
29
4.5k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Transcript
ユニットテストあるある 2016.6.24 アジャイルひよこクラブ 〜にわとりへの道〜
About me • Yasufumi Moritake • mediba inc. • Engineer
• Ruby, PHP • Movikuma(iOS Appli)
Agenda • ユニットテストにまつわる私の経験を共有し ます • プロジェクトAのリリース前 • プロジェクトBのリリース後 • プロジェクトCの巻き取り
プロジェクトAのリリース前
「リリースまでに余裕があればユニット テストを実装しましょう。」
Before • まずは動くもの • スケジュールやリソース的な問題 • リリース⽇が決まっている • ユニットテストの⽂化がない
After • 今回は余裕があったので、全機能のユニットテスト の実装が出来た • ユニットテストを実装することで、⽂化を作ること が出来た • その後もユニットテストはメンテされ、動いている と聞いています
プロジェクトBのリリース後
「リリース後にユニットテストを実装し ましょう。でも…」
「Productionコードの変更はしない で下さい。」
Before • リファクタリングしちゃダメ • ⻩⾦の回転が出来ない • 動作はするが、汚いコードのまま
• http://www.slideshare.net/t_wada/tdd-agile-samurai-base-camp
After • テストしやすいところだけ、ユニットテスト を実装した • リファクタリング出来ないので… • プロジェクト抜けた…
プロジェクトCの巻き取り
「Railsアプリを巻き取って欲しい」
Before • 巻き取り。。 • 不安しかない
After • ソースコードがキレイ! • APIドキュメントがある! • RSpecオールグリーン!
simplecovでカバレッジを取ってみた
None
デプロイはCI経由で、RSpecオールグ リーンの場合のみ可能なフロー
まとめ
まとめ • ユニットテストを実装する⽂化を作って、浸 透させる • ⻩⾦の回転を⾏うことで、リファクタリング を怖がらない • CIを導⼊して、フローに乗せる
ありがとうございました!