This is more of an approach than an actual specifc runner. This approach shows you that you can create a script file in BoxLang (bxs) or in CFML (cfs|cfm) that can in turn execute any test directory with many many runnable configurations. It is very similar to the Bundle Runner approach.
BoxLang
The BoxLang language allows you to run your scripts via the CLI or the browser if you have a web server attached to your project.
run.bxs
// Run all the specs in the tests.specs directory and subdirectoriesr =newtestbox.system.TestBox( directory="tests.specs" )println( r.run() )// Run all the specs in the tests.specs directory ONLYr =newtestbox.system.TestBox( directory={ mapping="tets.specs", recurse=false } )println( r.run() )// Run all the specs in the tests.specs directory and subdirectories using// a custom lambda filterr =newtestbox.system.TestBox( directory={ mapping : "tets.specs", filter : path -> findNoCase( "test", arguments.path ) ?true:false }) >println( r.run() )// Run all the specs in the tests.specs directory and subdirectories using// a custom lambda filter and create a JSON reportr =newtestbox.system.TestBox( directory={ mapping="tets.specs", filter : path -> findNoCase( "test", arguments.path ) ?true:false }) >fileWrite( 'testreports.json', r.run() )println( "JSON report created" )
If you want to run it in the CLI, then just use:
boxlangrun.bxs
If you want to run it via the web server, place it in your /tests/ folder and run it
http://localhost/tests/run.bxs
CFML
CFML engines only allow you to run tests via the browser. So create your script, place it in your web accessible /tests folder and run it.