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
240
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
940
What I learned by creating 'Scala on Rails' #trbmeetup
seratch
0
240
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
570
Other Decks in Technology
See All in Technology
AIのReact習熟度を測る
uhyo
2
640
2026年6月23日 Syncable Tech + Start Python Club にて
hamukazu
0
130
ぼっちではじめた登壇が「51名」「241件」の発信に化けた
subroh0508
0
170
自分が詳しくない領域でAIを使う #プロヒス2026
konifar
6
1.6k
徹底討論!ECS vs EKS!
daitak
0
120
作って終わりにしない タイミーのセマンティックレイヤー育成の現在地
chanyou0311
4
2.5k
200個のGitHubリポジトリを横断調査したかった
icck
0
130
2026TECHFRESH畢業分享會 - AI 時代的人生存檔點
line_developers_tw
PRO
0
1.3k
入門!AWS Blocks
ysuzuki
1
150
フィジカル版Github Onshapeの紹介
shiba_8ro
0
290
脆弱性対応、どこで線を引くか
rymiyamoto
1
410
Oracle AI Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
6
2k
Featured
See All Featured
[SF Ruby Conf 2025] Rails X
palkan
2
1.1k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.2k
Mind Mapping
helmedeiros
PRO
1
250
Building an army of robots
kneath
306
46k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
66
55k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
What's in a price? How to price your products and services
michaelherold
247
13k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
850
Making Projects Easy
brettharned
120
6.7k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
390
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