Skip to content

Instantly share code, notes, and snippets.

@elpete
Last active October 7, 2016 19:24
Show Gist options
  • Save elpete/e2650a3b3d8269d7f0d51793a77c355f to your computer and use it in GitHub Desktop.
Save elpete/e2650a3b3d8269d7f0d51793a77c355f to your computer and use it in GitHub Desktop.
Default runner for TestBox
component {
this.name = 'TestBoxTestingSuite' & hash(getCurrentTemplatePath());
this.sessionManagement = true;
this.sessionTimeout = createTimeSpan(0, 0, 15, 0);
this.applicationTimeout = createTimeSpan(0, 0, 15, 0);
this.setClientCookies = true;
this.mappings['/tests'] = getDirectoryFromPath(getCurrentTemplatePath());
rootPath = REReplaceNoCase(this.mappings['/tests'], 'tests(\\|/)', '');
this.mappings['/root'] = rootPath;
}
<cfsetting showDebugOutput="false">
<!--- Executes all tests in the 'specs' folder with simple reporter by default --->
<cfparam name="url.reporter" default="simple">
<cfparam name="url.directory" default="tests.specs">
<cfparam name="url.recurse" default="true" type="boolean">
<cfparam name="url.bundles" default="">
<cfparam name="url.labels" default="">
<cfparam name="url.reportpath" default="#expandPath( "/tests/results" )#">
<cfparam name="url.propertiesFilename" default="TEST.properties">
<cfparam name="url.propertiesSummary" default="false" type="boolean">
<!--- Include the TestBox HTML Runner --->
<cfinclude template="/testbox/system/runners/HTMLRunner.cfm" >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment