Skip to content

Commit

Permalink
better boxlang detection
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Sep 19, 2024
1 parent 641d318 commit 6f00bc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system/TestBox.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ component accessors="true" {
property name="bundlesPattern";

// Static Variables
variables.TESTBOX_PATH = expandPath( "/testbox" );
variables.IS_BOXLANG = server.keyExists( "boxlang" );
variables.IS_CLI = !getFunctionList().keyExists( "getPageContext" );
variables.TESTBOX_PATH = expandPath( "/testbox" );
variables.IS_BOXLANG = server.keyExists( "boxlang" );
variables.IS_CLI = variables.IS_BOXLANG && server.boxlang.cliMode ? true : false;
variables.DEFAULT_REPORTER = variables.IS_CLI ? "text" : "simple";
variables.DEFAULT_BUNDLES_PATTERN = "*Spec*.cfc|*Test*.cfc|*Spec*.bx|*Test*.bx";
// TestBox Info : Modified by the build process.
Expand Down

0 comments on commit 6f00bc0

Please sign in to comment.