Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rake test with redgreen gem always finish with "0 tests"

Just by adding the gem redgreen, the 'rake test' always finish by the line :

0 tests, 0 assertions, 0 failures, 0 errors

I've created a example project on github: https://github.com/joel1di1/test_colored_tests

like image 259
joel1di1 Avatar asked Nov 27 '25 06:11

joel1di1


1 Answers

In your Gemfile, change the group from being both :development and :test to just :test.

This way the redgreen gem is required in when you are running tests.

like image 83
Jesse Dearing Avatar answered Nov 29 '25 19:11

Jesse Dearing