-
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
103 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* Copyright Since 2005 Ortus Solutions, Corp | ||
* www.ortussolutions.com | ||
* ************************************************************************************* | ||
*/ | ||
class { | ||
this.name = "Test Browser"; | ||
|
||
// The mapping to easily access the tests | ||
this.mappings[ "/tests" ] = getDirectoryFromPath( getCurrentTemplatePath() ); | ||
// The mapping to easily access the root application usually the parent folder | ||
this.mappings[ "/root" ] = expandPath( "/../" ); | ||
|
||
// Any application settings go here | ||
|
||
/** | ||
* Executes BEFORE any runner or test requested. | ||
*/ | ||
boolean function onRequestStart( String targetPage ){ | ||
return true; | ||
} | ||
|
||
/** | ||
* Executes AFTER any runner or test requested. | ||
*/ | ||
void function onRequestEnd( String targetPage ){ | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* Copyright Since 2005 Ortus Solutions, Corp | ||
* www.ortussolutions.com | ||
* ************************************************************************************* | ||
*/ | ||
class { | ||
this.name = "Global Test Runner"; | ||
|
||
// The mapping to easily access the tests | ||
this.mappings[ "/tests" ] = getDirectoryFromPath( getCurrentTemplatePath() ); | ||
// The mapping to easily access the root application usually the parent folder | ||
this.mappings[ "/root" ] = expandPath( "/../" ); | ||
|
||
// Any application settings go here | ||
|
||
/** | ||
* Executes BEFORE any runner or test requested. | ||
*/ | ||
boolean function onRequestStart( String targetPage ){ | ||
return true; | ||
} | ||
|
||
/** | ||
* Executes AFTER any runner or test requested. | ||
*/ | ||
void function onRequestEnd( String targetPage ){ | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* Copyright Since 2005 Ortus Solutions, Corp | ||
* www.ortussolutions.com | ||
* ************************************************************************************* | ||
*/ | ||
component { | ||
|
||
this.name = "A TestBox Browser"; | ||
// any other application.cfc stuff goes below: | ||
this.sessionManagement = true; | ||
|
||
// any mappings go here, we create one that points to the root called test. | ||
this.mappings[ "/tests" ] = getDirectoryFromPath( getCurrentTemplatePath() ); | ||
|
||
// any orm definitions go here. | ||
|
||
// request start | ||
public boolean function onRequestStart( String targetPage ){ | ||
return true; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* Copyright Since 2005 Ortus Solutions, Corp | ||
* www.ortussolutions.com | ||
* ************************************************************************************* | ||
*/ | ||
component { | ||
|
||
this.name = "A TestBox Global Runner"; | ||
// any other application.cfc stuff goes below: | ||
this.sessionManagement = true; | ||
|
||
// any mappings go here, we create one that points to the root called test. | ||
this.mappings[ "/tests" ] = getDirectoryFromPath( getCurrentTemplatePath() ); | ||
|
||
// any orm definitions go here. | ||
|
||
// request start | ||
public boolean function onRequestStart( String targetPage ){ | ||
return true; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters