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
750
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
98
5 tips to build long-lasting Scala OSS
seratch
1
150
ScalikeJDBC / Skinny ORM Beginners' Guide
seratch
5
120k
All I learned while working on a Scala OSS project for over six years #ScalaMatsuri
seratch
1
750
What I learned by creating 'Scala on Rails' #trbmeetup
seratch
0
150
Scala on Rails @ Scalae by the Bay 2016 #scalae
seratch
1
1k
Contributing to Scala OSS from East Asia #ScalaMatsuri
seratch
0
1.2k
Skinny 2 Update
seratch
0
95
Future on Servlet #scala_ks
seratch
0
500
Other Decks in Technology
See All in Technology
継続的な改善 x ⾮連続的な進化
sansantech
PRO
3
110
WebアプリケーションにおけるPDOの使い方入門 / phpcon odawara 2024
meihei3
2
430
オブザーバビリティの Primary Signals
onk
PRO
0
550
レガシーをぶっ壊せ。AEONで始めるDevRelの話 / Qiita Night 2024-2-22
aeonpeople
3
150
The CloudCompare project by Dr. Daniel Girardeau-Montaut
kentaitakura
0
510
Autonomous Database Cloud 技術詳細 / adb-s_technical_detail_jp
oracle4engineer
PRO
14
35k
少数チームで挑む: SwiftUI, TCA, KMPを用いた 新規動画配信アプリ 「ABEMA Live」の開発について
tomu28
0
550
小さな開発会社がWebサービスを作る理由
polidog
PRO
1
160
エンタープライズ環境下での Active Directory の運用 TIPS
tamaiyutaro
1
1.6k
DevOpsメトリクスとアウトカムの接続にトライ!開発プロセスを通して計測できるメトリクスの活用方法
ham0215
2
200
Tableau事例紹介 / Tableau Case Study of Eureka
kazuya_araki_tokyo
1
170
On Your Data を超えていく!
hirotomotaguchi
2
120
Featured
See All Featured
Large-scale JavaScript Application Architecture
addyosmani
503
110k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
24
2.3k
Atom: Resistance is Futile
akmur
258
25k
A Tale of Four Properties
chriscoyier
150
22k
Ruby is Unlike a Banana
tanoku
96
10k
A Philosophy of Restraint
colly
196
16k
Why Our Code Smells
bkeepers
PRO
331
56k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
13
1.5k
Why You Should Never Use an ORM
jnunemaker
PRO
50
8.6k
Automating Front-end Workflow
addyosmani
1355
200k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
124
32k
Facilitating Awesome Meetings
lara
41
5.6k
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