...

/

Running Smaller Groups of Tests in Minitest

Running Smaller Groups of Tests in Minitest

Learn how to run smaller groups of tests in Minitest fast.

Minitest running smaller groups of tests

If we’re invoking Minitest through the rake tasks that Rails provide, then it’s easy to run a single file’s worth of output just by passing the file name at the command line:

Terminal 1
Terminal
Loading...

The argument can be an individual file or a directory. We can have more than one file or directory if spaces separate them.

This behavior is relatively new to Rails. If ...