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.
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 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