© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
D. IrvineBuild Your Own Test Frameworkhttps://doi.org/10.1007/978-1-4842-9247-1_7

7. Automatically Discovering Test Files

Daniel Irvine1  
(1)
London, UK
 

Up to this point, our tests have had to exist within the test/tests.mjs file. This is not ideal. Surely we want the ability to place our test suites wherever we want.

In this chapter you’ll learn
  • Typical testing workflows during local development

  • How to run multiple test suites sequentially

  • How to run just a single, specific file by including the file path in the launch command

Let’s begin with a look at some common usage patterns when running test runners locally.

Development Workflows and Test Runners

We know that ...

Get Build Your Own Test Framework: A Practical Guide to Writing Better Automated Tests 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.