I downloaded source code for a project, found a bug, and fixed it.
Now I want to run tests to find out if I have broken anything.
The Tests are in minitest DSL.
How do I run them all at once?
I searched for applicable rake tasks etc, but I didn't find any.
locks' answer is better, but I also wanted to point out that you can also run minitest directly from the command like with the ruby command. To run the tests in the spec/calculator_spec.rb file run:
Remember to include the following code in the calculator_spec.rb file:
To run all tests in the spec/ directory, use the following command (see this post for more details Globbing doesn't work with Minitest - Only one file is run)
$ rake test
ran out of the rails 5.0 box.This can also be done via a Makefile.
running
make
will run all your tests.