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
560
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
untestable production code
TAKAHASHI Kazunari
March 20, 2013
More Decks by TAKAHASHI Kazunari
See All by TAKAHASHI Kazunari
fat-settings-yml
1syo
0
890
雑につくるKPIツールのススメ
1syo
0
510
みなとRuby会議02やりたい
1syo
1
330
Testing Wercker plugin with bats
1syo
0
590
私を変えた1冊の本
1syo
0
860
普通のCSVアップロードフォームを作りたい(改)
1syo
9
1.1k
普通のCSVアップロードフォームを作りたい
1syo
17
3k
kaja-2013
1syo
0
540
authorization-for-buktorg
1syo
0
380
Featured
See All Featured
BBQ
matthewcrist
89
10k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
250
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
240
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
170
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
Producing Creativity
orderedlist
PRO
348
40k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
200
Building an army of robots
kneath
306
46k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
230
Building Adaptive Systems
keathley
44
3.1k
Deep Space Network (abreviated)
tonyrice
0
210
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
210
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ਫ༵