TestBox ships with several test runners internally but we have tried to simplify and abstract it with our TestBox object which can be found in the
testbox.system package. The
testboxobject allows you to execute tests from a CFC, CFM, HTTP, SOAP, NodeJS or REST. You can also make your CFC's extend from our
BaseSpecclass so you can execute it directly via the URL. The main execution methods are:
// Run tests and produce reporter results
// Run tests and get raw testbox.system.TestResults object
// Run tests and produce reporter results from SOAP, REST, HTTP
// Run via Spec URL
Here are the arguments you can use for initializing TestBox or executing the
Here are the arguments you can use for executing the
runRemote()method of the TestBox object:
bundlesargument which can be a single CFC path or an array of CFC paths or a directory argument so it can go and discover the test bundles from that directory.
reporterargument can be a core reporter name like: json,xml,junit,raw,simple,dots,tap,min,etc or it can be an instance of a reporter CFC.
- You can execute the runners from any cfm template or any CFC or any URL, that is up to you.