The easiest way to run your tests is to use the TestBox CLI via the
testbox runcommand. Ensure you are in the web root of your project or have configured the
box.jsonto include the TestBox runner in it as shown below. If not CommandBox will try to run by convention your site +
You can also pass the runner URL via the
testbox runcommand. Try out the
testbox run helpcommand.
Here is a simple
box.jsonconfig that has a runner and some watcher config.
Check out the watcher command:
Every test harness also has an HTML runner you can execute. By convention the URL is
This will execute ALL tests in the
tests/specsdirectory for you.
You can also target a specific spec to execute via the URL
TestBox ships with a global runner that can run pretty much anything. You can customize it or place it wherever you need it:
TestBox ships with a test browser that is highly configurable to whatever URL-accessible path you want. It will then show you a test browser where you can navigate and execute not only individual tests but also directory suites.