Upgrade to Pro — share decks privately, control downloads, hide ads and more …

A Test Code Generator for RSpec Users

A Test Code Generator for RSpec Users

RubyKaigi 2013 Lightning Talk
About rpsec-kickstarter

Kazuhiro Sera

May 31, 2013
Tweet

More Decks by Kazuhiro Sera

Other Decks in Technology

Transcript

  1. [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!
  2. 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...)
  3. 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...
  4. What it does RDoc::Parser::Ruby is used to extract method name

    and its parameter names and just write spec files.
  5. Testing for methods? Testing for methods is not perfect &

    not enough. But this approach is effective enough to start with.