Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
A Test Code Generator for RSpec Users
Search
Kazuhiro Sera
May 31, 2013
Technology
960
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
170
5 tips to build long-lasting Scala OSS
seratch
1
260
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
960
What I learned by creating 'Scala on Rails' #trbmeetup
seratch
0
260
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
180
Future on Servlet #scala_ks
seratch
0
590
Other Decks in Technology
See All in Technology
Deep Data Security 機能解説
oracle4engineer
PRO
2
790
DWH の限界突破! AI エージェント向け爆速リアルタイムデータ基盤 ClickHouse
jozono
1
390
12 個 Tool と、 4,096 Token
hlum
0
140
TinyGoでオブザーバビリティ?OpenTelemetryはTinyGoで使えるのか / Is OpenTelemetry available in TinyGo environment?
ymotongpoo
2
140
ブラウザとサーバーから考えるAI時代のフロントエンド監視
shogo4131
3
860
10年後、Engineering 行為を剥奪されるとして、わたしたちは、どう、何を創ればいいだろうか。 / If Engineering Is Taken Away in 10 Years, How and What Should We Create?
bitkey
PRO
1
130
UniFi(ユニファイ)AIカメラの現場活用
ludicmind
1
420
無理せず続ける、子育てエンジニアの学び
codmoninc
PRO
0
710
Running Kotlin + Quarkus with Lambda
nealle
1
450
オンラインゲームのシステム全体像 - コロプラ 2026年度 新卒研修
colopl
0
1.1k
LLM機能を自作して分かるSnowflake Cortex AIの強み
nayuts
0
370
実践!Cloud Run ハンズオン!! / Cloud Run handson
y0hgi
0
230
Featured
See All Featured
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
280
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
520
A better future with KSS
kneath
240
18k
Accessibility Awareness
sabderemane
1
240
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
500
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
エンジニアに許された特別な時間の終わり
watany
109
250k
My Coaching Mixtape
mlcsv
0
350
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
520
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