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
How the RSpec team and I built the smooth upgrade process for RSpec 3
Search
Yuji Nakayama
September 19, 2014
Programming
0
210
How the RSpec team and I built the smooth upgrade process for RSpec 3
Lightning Talk in RubyKaigi 2014
Yuji Nakayama
September 19, 2014
Tweet
Share
More Decks by Yuji Nakayama
See All by Yuji Nakayama
Qiita / Qiita:Team における Markdown レンダリングの歴史
yujinakayama
9
10k
Other Decks in Programming
See All in Programming
最古の関数型言語「Lisp」ことはじめ / lisp_in_kamiyama
uhooi
1
190
Rustのweb開発を助ける 便利なツール紹介
yuki0418
1
190
最近追加した型の紹介とその振り返り
aki19035vc
0
170
DMMプラットフォームにおけるTiDBの導入から運用まで
pospome
7
3k
APIのない大学ログインWebサービスをWKWebViewとJavaScriptでアプリ化した話
akidon0000
1
330
Clean Architecture by TypeScript & NestJS
ryounasso
0
150
ドメイン駆動設計の実践
masuda220
PRO
17
5.1k
Findy - エンジニア向け会社紹介 / Findy Letter for Engineers
findyinc
2
81k
CSC307 Lecture 14
javiergs
PRO
0
220
CSC307 Lecture 09
javiergs
PRO
1
500
Modern Angular: Renovation for Your Applications
manfredsteyer
PRO
0
140
なぜ宣言的 UI は壊れにくいのか / Why declarative UI is less fragile
uenitty
29
13k
Featured
See All Featured
Adopting Sorbet at Scale
ufuk
71
8.8k
Fireside Chat
paigeccino
25
2.8k
The Invisible Side of Design
smashingmag
294
50k
What’s in a name? Adding method to the madness
productmarketing
PRO
21
2.9k
Principles of Awesome APIs and How to Build Them.
keavy
124
16k
Creatively Recalculating Your Daily Design Routine
revolveconf
214
11k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
35
6.3k
A better future with KSS
kneath
231
17k
KATA
mclloyd
20
13k
Robots, Beer and Maslow
schacon
PRO
157
8.1k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
29
2.5k
Pencils Down: Stop Designing & Start Developing
hursman
118
11k
Transcript
How the RSpec team and I built the smooth upgrade
process for RSpec 3 Yuji Nakayama @nkym37 yujinakayama
RSpec 3 Released at June 2
Your specs written on RSpec 2 cannot be run on
RSpec 3 without upgrading
The RSpec team and I made the upgrade process smooth
as much as possible
RSpec 2.99 Transpec by the RSpec team by me
Compatible with RSpec 2.x + Deprecation warnings for things removed
in 3.0 RSpec 2.99
Upgrade checklist for your project You need not to read
the entire changelog!
Transpec Automatically converts your specs to the RSpec 3 syntax
None
AST Accurate conversion with
+ Runtime Information AST Accurate conversion with
The Upgrade Process 1. Update RSpec from 2.x to 2.99
2. Run Transpec 4. Update RSpec from 2.99 to 3.0 5. Done! 3. Manual handling (If any deprecation is remaining) About
? Is this upgrade approach applicable to other frameworks?
Why it was possible in RSpec
Simply Runnable Test codes are always run, so the deprecation
warnings and the runtime analysis worked well.
Specs themselves are tests. You can immediately notice if something
is wrong. Testable
It took much effort, but we had a significance of
doing it for the many users. Popular
? So, ineffective in frameworks that don't meet the conditions?
No There is room for compromise. It should still be helpful and much better than full manual upgrade.
This approach might be an option for your framework
How the RSpec team built the smooth upgrade process for
RSpec 3 and I
How the RSpec team built the smooth upgrade process for
RSpec 3
Thank you