RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Riot: Protest the slow test

Riot is a fast and expressive testing framework. The syntax fundamentally cuts down on redundant code, so Riot tests are terse and expressive.

Comments

I’m always interesting in new perspectives in testing. It seems that the point of Riot is to speed up the test suite of a given app. This seems to be accomplished by not rerunning the setup block for every context, only running it once. You can already do this in RSpec by declaring ‘before(:all)’ instead of the default ‘before’ or ‘before(:each)’.

To accomplish this the author recommends the practice of your assertions not being able to change any data in the setup block.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in