Running Smaller Groups of Tests
Running just some of your tests at once is often useful. If you have a slow test suite, running a relevant subset of tests will let you get most of the value of rapid testing feedback without the cost of the entire test suite. When debugging, you often just care about one or two tests. Also, if you’re being verbose about printing output to the terminal, then only running one test will spare you from potentially having to wade through a lot of spurious output. If you’re running Pry, being able to only run one test will let you focus better.
Prescription 43 | If you have a slow test suite, you can mitigate the effects in practice by being able to run a relevant subset of tests. |
Each tool has its own way to allow you ...
Get Rails 5 Test Prescriptions now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.