Directory Runner
1
<cfset r = new coldbox.system.TestBox( directory="coldbox.testing.cases.testing.specs" ) >
2
<cfoutput>#r.run()#</cfoutput>
3
4
<cfset r = new coldbox.system.TestBox(
5
directory={
6
mapping="coldbox.testing.cases.testing.specs",
7
recurse=false
8
}) >
9
<cfoutput>#r.run()#</cfoutput>
10
11
<cfset r = new coldbox.system.TestBox(
12
directory={
13
mapping="coldbox.testing.cases.testing.specs",
14
recurse=true,
15
filter=function(path){
16
return ( findNoCase( "test", arguments.path ) ? true : false );
17
}
18
}) >
19
<cfoutput>#r.run()#</cfoutput>
20
21
<cfset r = new coldbox.system.TestBox(
22
directory={
23
mapping="coldbox.testing.cases.testing.specs",
24
recurse=true,
25
filter=function(path){
26
return ( findNoCase( "test", arguments.path ) ? true : false );
27
}
28
}) >
29
<cfset fileWrite( 'testreports.json', r.run() )>
Copied!
Copy link
Edit on GitHub