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
untestable production code
Search
TAKAHASHI Kazunari
March 20, 2013
0
490
untestable production code
TAKAHASHI Kazunari
March 20, 2013
Tweet
Share
More Decks by TAKAHASHI Kazunari
See All by TAKAHASHI Kazunari
fat-settings-yml
1syo
0
690
雑につくるKPIツールのススメ
1syo
0
410
みなとRuby会議02やりたい
1syo
1
220
Testing Wercker plugin with bats
1syo
0
460
私を変えた1冊の本
1syo
0
760
普通のCSVアップロードフォームを作りたい(改)
1syo
9
970
普通のCSVアップロードフォームを作りたい
1syo
17
2.7k
kaja-2013
1syo
0
460
authorization-for-buktorg
1syo
0
330
Featured
See All Featured
Web development in the modern age
philhawksworth
202
10k
Practical Orchestrator
shlominoach
182
9.7k
Fireside Chat
paigeccino
21
2.6k
KATA
mclloyd
15
12k
From Idea to $5000 a Month in 5 Months
shpigford
377
45k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
40
4.4k
It's Worth the Effort
3n
180
27k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
19
1.7k
Code Review Best Practice
trishagee
55
15k
What the flash - Photography Introduction
edds
64
11k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
227
16k
We Have a Design System, Now What?
morganepeng
43
6.8k
Transcript
テストしづらい コードたち 2013/03/20 Shibuya.rb :20130320 @1syo 133݄20ਫ༵
じこショウカイ •Yokohama.rb メンバー •みなとRubyかいぎ Organizer •RubyKaja Award 2012 Winner •TDDBC
Yokohama TA 133݄20ਫ༵
133݄20ਫ༵
カイハツのすすめ方 •Request Spec •リソース単体のテストとリファクタリ ング •複数のリソースを跨るテストとリファ クタリング •viewのリファクタリング •機能追加 133݄20ਫ༵
カイハツのすすめ方 •Request Spec •リソース単体のテストとリファク タリング •複数のリソースを跨るテ ストとリファクタリング •viewのリファクタリング •機能追加 133݄20ਫ༵
げんじょう • テストカバレッジの↑ • 53ʙ58%くらい → 97.8% • Rails Best
Practicesのwarning • 130 → 10 • 追加されたコードの行数 • 5734行 • 削除されたコードの行数 • 5452行 133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
GroupsController 133݄20ਫ༵
GroupsController 133݄20ਫ༵
EventsController 133݄20ਫ༵
EventsController 133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
体系的に学ぶ安全なWebアプリケーションの作り方より引用 133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
view > controller > model 133݄20ਫ༵
しつもんコーナー 133݄20ਫ༵
Thank you! 133݄20ਫ༵