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
0
880
A Test Code Generator for RSpec Users
RubyKaigi 2013 Lightning Talk
About rpsec-kickstarter
Kazuhiro Sera
May 31, 2013
Tweet
Share
More Decks by Kazuhiro Sera
See All by Kazuhiro Sera
5 tips to build long-lasting Scala OSS (cont’d)
seratch
0
120
5 tips to build long-lasting Scala OSS
seratch
1
180
ScalikeJDBC / Skinny ORM Beginners' Guide
seratch
5
130k
All I learned while working on a Scala OSS project for over six years #ScalaMatsuri
seratch
1
890
What I learned by creating 'Scala on Rails' #trbmeetup
seratch
0
190
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
120
Future on Servlet #scala_ks
seratch
0
540
Other Decks in Technology
See All in Technology
事業成長の裏側:エンジニア組織と開発生産性の進化 / 20250703 Rinto Ikenoue
shift_evolve
PRO
2
19k
赤煉瓦倉庫勉強会「Databricksを選んだ理由と、絶賛真っ只中のデータ基盤移行体験記」
ivry_presentationmaterials
2
330
American airlines ®️ USA Contact Numbers: Complete 2025 Support Guide
airhelpsupport
0
360
さくらのIaaS基盤のモニタリングとOpenTelemetry/OSC Hokkaido 2025
fujiwara3
2
360
面倒な作業はAIにおまかせ。Flutter開発をスマートに効率化
ruideengineer
0
210
高速なプロダクト開発を実現、創業期から掲げるエンタープライズアーキテクチャ
kawauso
2
8.3k
OPENLOGI Company Profile
hr01
0
67k
改めてAWS WAFを振り返る~業務で使うためのポイント~
masakiokuda
2
240
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
20
6.8k
KubeCon + CloudNativeCon Japan 2025 Recap
ren510dev
1
370
作曲家がボカロを使うようにPdMはAIを使え
itotaxi
0
440
「良さそう」と「とても良い」の間には 「良さそうだがホンマか」がたくさんある / 2025.07.01 LLM品質Night
smiyawaki0820
1
510
Featured
See All Featured
KATA
mclloyd
30
14k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
20
1.3k
Practical Orchestrator
shlominoach
188
11k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Building Flexible Design Systems
yeseniaperezcruz
328
39k
Why You Should Never Use an ORM
jnunemaker
PRO
58
9.4k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
810
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.8k
Build The Right Thing And Hit Your Dates
maggiecrowley
36
2.8k
We Have a Design System, Now What?
morganepeng
53
7.7k
How to train your dragon (web standard)
notwaldorf
94
6.1k
Designing for humans not robots
tammielis
253
25k
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