Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 1002 Bytes

directory-runner.md

File metadata and controls

34 lines (29 loc) · 1002 Bytes

Directory Runner

<cfset r = new coldbox.system.TestBox( directory="coldbox.testing.cases.testing.specs" ) >
<cfoutput>#r.run()#</cfoutput>

<cfset r = new coldbox.system.TestBox( 
      directory={ 
            mapping="coldbox.testing.cases.testing.specs", 
            recurse=false 
      }) >
<cfoutput>#r.run()#</cfoutput>

<cfset r = new coldbox.system.TestBox(
      directory={ 
            mapping="coldbox.testing.cases.testing.specs",
            recurse=true,
            filter=function(path){
                  return ( findNoCase( "test", arguments.path ) ? true : false );
            }
      }) >
<cfoutput>#r.run()#</cfoutput>

<cfset r = new coldbox.system.TestBox(
      directory={ 
            mapping="coldbox.testing.cases.testing.specs",
            recurse=true,
            filter=function(path){
                  return ( findNoCase( "test", arguments.path ) ? true : false );
            }
      }) >
<cfset fileWrite( 'testreports.json', r.run() )>