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
930
0
Share
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
140
5 tips to build long-lasting Scala OSS
seratch
1
230
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
930
What I learned by creating 'Scala on Rails' #trbmeetup
seratch
0
230
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
150
Future on Servlet #scala_ks
seratch
0
550
Other Decks in Technology
See All in Technology
GKE Agent SandboxでAIが生成したコードを 安全に実行してみた
lamaglama39
0
120
EMから幅を広げるために最近挑戦していること / Recent challenges I'm undertaking to expand my horizons beyond EM
hiro_torii
1
150
「責任あるAIエージェント」こそ自社で開発しよう!
minorun365
10
2.3k
Revisiting [CLS] and Patch Token Interaction in Vision Transformers
yu4u
0
400
需要創出(Chatwork)×供給(BPaaS) フライホイールとMoat 実行能力の最適配置とAI戦略
kubell_hr
0
1.1k
AI와 협업하는 조직으로의 여정
arawn
0
540
Choose your own adventure in agentic design patterns
glaforge
0
160
運用システムにおけるデータ活用とPlatform
sansantech
PRO
0
140
No Types Needed, Just Callable Method Check
dak2
1
2.2k
【技術書典20】OpenFOAM(自宅で深める流体解析)流れと熱移動(2)
kamakiri1225
0
310
Class.new is all you need
riseshia
1
190
FessのAI検索モード:検索システムとLLMへの取り組み
marevol
0
100
Featured
See All Featured
The Mindset for Success: Future Career Progression
greggifford
PRO
0
310
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
730
First, design no harm
axbom
PRO
2
1.2k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
350
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.8k
Making Projects Easy
brettharned
120
6.6k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
190
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.1k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Scaling GitHub
holman
464
140k
Side Projects
sachag
455
43k
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