A Test Code Generatorfor RSpecUsers@seratchKazuhiro Sera
Who am I?Kazuhiro Sera@seratchGistub(in-house gist)Web developerat M3, Inc.
[PR] M3, Inc.No.1 portal sitefor doctors in Japan.Java, Scala and Ruby!Recently we’re usingRuby on Railsand Fluentd!We nee...
Main subjectIntroducing my gem which is namedrspec-kickstarterIt’s a command line tool thatgenerates RSpec codeand kick-st...
Kickstarter?Of course,No relationshipwith
Skip messy work!rspec-kickstarterautomates messy workbefore writing specs.create new file, write describe andblocks, creat...
Create new spec
Append lacking casesLet’s run with the -f option!
Append lacking casesNew!
Apply recursivelySpecifying directory worksrecursively.
What it doesRDoc::Parser::Rubyis used to extract methodname and its parameternamesand just write spec files.
Testing for methods?Testing for methods isnot perfect & not enough.But this approach iseffective enoughto start with.
FeedbackStill Newborn!Any feedback is muchappreciated.
Try it nowgem installrspec-kickstarter
Upcoming SlideShare
Loading in...5
×

A Test Code Generator for RSpec Users

1,214

Published on

About rspec-kickstarter.

https://github.com/seratch/rspec-kickstarter

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,214
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

A Test Code Generator for RSpec Users

  1. 1. A Test Code Generatorfor RSpecUsers@seratchKazuhiro Sera
  2. 2. Who am I?Kazuhiro Sera@seratchGistub(in-house gist)Web developerat M3, Inc.
  3. 3. [PR] M3, Inc.No.1 portal sitefor doctors in Japan.Java, Scala and Ruby!Recently we’re usingRuby on Railsand Fluentd!We need more Rubyists!
  4. 4. Main subjectIntroducing my gem which is namedrspec-kickstarterIt’s a command line tool thatgenerates RSpec codeand kick-starts testing!(when there are no tests...)
  5. 5. Kickstarter?Of course,No relationshipwith
  6. 6. Skip messy work!rspec-kickstarterautomates messy workbefore writing specs.create new file, write describe andblocks, create an instance andprepare args to invoke the method,append new cases if absent...
  7. 7. Create new spec
  8. 8. Append lacking casesLet’s run with the -f option!
  9. 9. Append lacking casesNew!
  10. 10. Apply recursivelySpecifying directory worksrecursively.
  11. 11. What it doesRDoc::Parser::Rubyis used to extract methodname and its parameternamesand just write spec files.
  12. 12. Testing for methods?Testing for methods isnot perfect & not enough.But this approach iseffective enoughto start with.
  13. 13. FeedbackStill Newborn!Any feedback is muchappreciated.
  14. 14. Try it nowgem installrspec-kickstarter

×