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
A Test Code Generator for RSpec Users
Search
Kazuhiro Sera
May 31, 2013
Technology
940
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
A Test Code Generator for RSpec Users
RubyKaigi 2013 Lightning Talk
About rpsec-kickstarter
Kazuhiro Sera
May 31, 2013
More Decks by Kazuhiro Sera
See All by Kazuhiro Sera
5 tips to build long-lasting Scala OSS (cont’d)
seratch
0
160
5 tips to build long-lasting Scala OSS
seratch
1
250
ScalikeJDBC / Skinny ORM Beginners' Guide
seratch
5
140k
All I learned while working on a Scala OSS project for over six years #ScalaMatsuri
seratch
1
950
What I learned by creating 'Scala on Rails' #trbmeetup
seratch
0
250
Scala on Rails @ Scalae by the Bay 2016 #scalae
seratch
1
1.1k
Contributing to Scala OSS from East Asia #ScalaMatsuri
seratch
0
1.2k
Skinny 2 Update
seratch
0
170
Future on Servlet #scala_ks
seratch
0
580
Other Decks in Technology
See All in Technology
アクセスキー流出時の対応で再認識した攻撃側と防御側の非対称性について
kazzpapa3
0
370
Introduction to Bill One Development Engineer
sansan33
PRO
0
470
分割40%キーボードにスムーズに入門するには
hoto17296
1
110
研究開発部の紹介 / Sansan R&D Profile
sansan33
PRO
4
24k
OpenID for Verifiable Credentials 実装から見えた相互運用性確保までの道のり(OAuth/OIDC Numa (Immersion) Workshop 2026)
oidfj
PRO
0
320
Kiro5兄弟のいまどきのセキュリティ基礎知識
kentapapa
0
330
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1.2k
RapidCopy2 Matrix I/Oエンジンによるファイルコピーソフトウェアの設計と実装
kengosawa2
1
430
紙 to デジタル
ichien178
0
210
カーネルまで探検して理解するふたつの自動計装
sumiyae
0
330
AI時代のアウトプット――変わったこと、変わらないこと / Devsumi 2026 Kansai #devsumi
jnchito
0
590
アクセスキーが漏れた日にやるべきこと- 無効化の先にある本当の対応
kazzpapa3
0
340
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.1k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
440
KATA
mclloyd
PRO
35
15k
We Are The Robots
honzajavorek
0
310
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
650
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
450
Claude Code のすすめ
schroneko
67
230k
Agile that works and the tools we love
rasmusluckow
331
22k
[SF Ruby Conf 2025] Rails X
palkan
2
1.3k
Designing Powerful Visuals for Engaging Learning
tmiket
1
510
Transcript
A Test Code Generator for RSpec Users @seratch Kazuhiro Sera
Who am I? Kazuhiro Sera @seratch Gistub (in-house gist) Web
developer at M3, Inc.
[PR] M3, Inc. No.1 portal site for doctors in Japan.
Java, Scala and Ruby! Recently we’re using Ruby on Rails and Fluentd! We need more Rubyists!
Main subject Introducing my gem which is named rspec-kickstarter It’s
a command line tool that generates RSpec code and kick-starts testing! (when there are no tests...)
Kickstarter? Of course, No relationship with
Skip messy work! rspec-kickstarter automates messy work before writing specs.
create new file, write describe and blocks, create an instance and prepare args to invoke the method, append new cases if absent...
Create new spec
Append lacking cases Let’s run with the -f option!
Append lacking cases New!
Apply recursively Specifying directory works recursively.
What it does RDoc::Parser::Ruby is used to extract method name
and its parameter names and just write spec files.
Testing for methods? Testing for methods is not perfect &
not enough. But this approach is effective enough to start with.
Feedback Still Newborn! Any feedback is much appreciated.
Try it now gem install rspec-kickstarter