Skip to content

Commit

Permalink
adding applications
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Sep 17, 2024
1 parent cbcb311 commit c296eb0
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 1 deletion.
29 changes: 29 additions & 0 deletions bx/browser/Application.bx
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 ){
}

}
29 changes: 29 additions & 0 deletions bx/runner/Application.bx
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 ){
}

}
22 changes: 22 additions & 0 deletions cfml/browser/Application.cfc
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;
}

}
22 changes: 22 additions & 0 deletions cfml/runner/Application.cfc
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;
}

}
2 changes: 1 addition & 1 deletion cfml/tests/Application.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
component {

this.name = "A TestBox Runner Suite " & hash( getCurrentTemplatePath() );
this.name = "A TestBox Runner Suite";
// any other application.cfc stuff goes below:
this.sessionManagement = true;

Expand Down

0 comments on commit c296eb0

Please sign in to comment.