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
530
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
830
雑につくるKPIツールのススメ
1syo
0
470
みなとRuby会議02やりたい
1syo
1
290
Testing Wercker plugin with bats
1syo
0
540
私を変えた1冊の本
1syo
0
820
普通のCSVアップロードフォームを作りたい(改)
1syo
9
1k
普通のCSVアップロードフォームを作りたい
1syo
17
2.9k
kaja-2013
1syo
0
500
authorization-for-buktorg
1syo
0
340
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.4k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
21k
The Invisible Side of Design
smashingmag
301
51k
Making the Leap to Tech Lead
cromwellryan
134
9.5k
Unsuck your backbone
ammeep
671
58k
The World Runs on Bad Software
bkeepers
PRO
70
11k
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.6k
Automating Front-end Workflow
addyosmani
1370
200k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3.1k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
Being A Developer After 40
akosma
90
590k
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ਫ༵