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
970
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
Vue.jsのGitHubから学ぶ意思決定
yut0naga1_fa
1
340
AIに任せられるFlutterコードベースを作る 〜仕様をコードで表し、ハーネスで守る〜
myohei
1
430
増え続けるプロダクトの品質をどう担保するか。ProductSpecとTypeScriptによる取り組み
joere
2
210
E2Eってつらくないですか?E2Eの管理コストを下げる手段とその実践
akaboshinit
6
2.8k
正解のない研修に放り出されて / Being thrown into a training program with no right answers
ohnoeight
1
170
仕様駆動開発の、その先へ。決める力と確かめる仕組み
inariku
1
140
Snowflake でできることが増えたら、 ABAC が必要になった
kaeton
0
120
生き様としてのSRE
hokkai7go
0
140
Maestro MCPとClaude Code Skillsによる自律的なE2Eテスト支援
asmz
0
380
Patterns in AI Driven Software Development
akosma
PRO
0
360
Content Mapper APIの応用例~CSS Modules、言語ファイル~
uhyo
2
280
Claude for Google Workspaces ポン出し/claude-for-google-workspace-slide-conversion
emiki
0
13k
Featured
See All Featured
Done Done
chrislema
187
17k
Tell your own story through comics
letsgokoyo
1
1.1k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
950
Git: the NoSQL Database
bkeepers
PRO
433
67k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
470
Paper Plane
katiecoart
PRO
5
54k
KATA
mclloyd
PRO
35
16k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
430
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2.1k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
500
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
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