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
480
みなと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
510
authorization-for-buktorg
1syo
0
340
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
283
13k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Making Projects Easy
brettharned
117
6.3k
Building Adaptive Systems
keathley
43
2.7k
[RailsConf 2023] Rails as a piece of cake
palkan
56
5.8k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.6k
Side Projects
sachag
455
43k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
183
54k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
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ਫ༵