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
860
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
110
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
880
What I learned by creating 'Scala on Rails' #trbmeetup
seratch
0
180
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
110
Future on Servlet #scala_ks
seratch
0
530
Other Decks in Technology
See All in Technology
От ручной разметки к LLM: как мы создавали облако тегов в Lamoda. Анастасия Ангелова, Data Scientist, Lamoda Tech
lamodatech
0
410
AIエージェント開発における「攻めの品質改善」と「守りの品質保証」 / 2024.04.09 GPU UNITE 新年会 2025
smiyawaki0820
0
400
Automatically generating types by running tests
sinsoku
1
450
SDカードフォレンジック
su3158
0
330
Langchain4j y Ollama - Integrando LLMs con programas Java @ Commit Conf 2025
deors
1
130
7,000名規模の 人材サービス企業における プロダクト戦略・戦術と課題 / Product strategy, tactics and challenges for a 7,000-employee staffing company
techtekt
0
260
ブラウザのレガシー・独自機能を愛でる-Firefoxの脆弱性4選- / Browser Crash Club #1
masatokinugawa
1
400
CBになったのでEKSのこともっと知ってもらいたい!
daitak
1
150
Creating Awesome Change in SmartNews
martin_lover
1
240
MCPを活用した検索システムの作り方/How to implement search systems with MCP #catalks
quiver
5
1.1k
JPOUG Tech Talk #12 UNDO Tablespace Reintroduction
nori_shinoda
1
120
20250413_湘南kaggler会_音声認識で使うのってメルス・・・なんだっけ?
sugupoko
1
400
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
67
11k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.3k
StorybookのUI Testing Handbookを読んだ
zakiyama
29
5.6k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.2k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
650
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
It's Worth the Effort
3n
184
28k
4 Signs Your Business is Dying
shpigford
183
22k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
34
2.2k
KATA
mclloyd
29
14k
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