For the complete documentation index, see llms.txt. This page is also available as Markdown.

Web Runner

Every test harness comes with a runner.bx or runner.cfm in the root of the tests folder. This is called the web runner and is executable via the web server you are running your application on. This will execute all the tests by convention found in the tests/specs folder.

The web runner with the Simple reporter
The web runner with the default Simple reporter
http://localhost/tests/runner.cfm

You can open that file and customize it as you see fit. Here is an example of such a file:

Run All and Run Failed

The HTML reports (Simple, Min, Dot, Doc) have a Run All button and, when something failed or errored, a Run Failed (N) button that reruns only those specs through the same runner. The link carries the failed bundles and spec ids (testBundles and testSpecs), so the runner keeps no state. See Run All and Run Failed.

Test Bundle Execution

If you make your test bundle class inherit from our testbox.system.BaseSpec class, you will be able to execute the class directly via the URL:

Arguments

All the arguments found in the runner are available as well in a direct bundle execution:

  • labels: The labels to apply to the execution

  • testMethod : A list or array of xunit test names that will be executed ONLY!

  • testSuites : A list or array of suite names that are the ones that will be executed ONLY!

  • testSpecs : A list or array of test names that are the ones that will be executed ONLY!

  • reporter : The type of reporter to run the test with

Last updated

Was this helpful?