Skip to content

Commit 545e98d

Browse files
bpamiriclaude
andcommitted
refactor: rename test directories — tests_testbox → tests, tests → rocketunit_tests
TestBox/WheelsTest is the standard test framework. The transitional name "tests_testbox" is replaced with simply "tests". The legacy RocketUnit test infrastructure is moved to "rocketunit_tests". - vendor/wheels/tests_testbox/ → vendor/wheels/tests/ - vendor/wheels/tests/ → vendor/wheels/rocketunit_tests/ - Updated all internal path references in runner, specs, and framework - Function name tests_testbox() preserved for route backwards compat Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 543c98e commit 545e98d

File tree

256 files changed

+265
-265
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

256 files changed

+265
-265
lines changed

vendor/wheels/Dispatch.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ component output="false" extends="wheels.Global"{
490490

491491
// Filter out illegal characters from the controller and action arguments.
492492
// Debug log before filtering
493-
if (local.rv.controller == "wheels.public" && local.rv.action == "tests_testbox") {
493+
if (local.rv.controller == "wheels.public" && local.rv.action == "tests_testbox") { // keep action name for route compat
494494
writeLog(file="application", text="Before filter - action: #local.rv.action#");
495495
}
496496
local.rv.action = ReReplace(local.rv.action, "[^0-9A-Za-z-_\.]", "", "all");

vendor/wheels/Global.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2616,7 +2616,7 @@ component output="false" {
26162616
];
26172617

26182618
// directories & files to be removed
2619-
local.exclude = ["/wheels/tests", "/wheels/public/build.cfm", "/wheels/tests_testbox"];
2619+
local.exclude = ["/wheels/rocketunit_tests", "/wheels/public/build.cfm", "/wheels/tests"];
26202620

26212621
// filter out these bad boys
26222622
local.filter = "*.settings, *.classpath, *.project, *.DS_Store";

vendor/wheels/Public.cfc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ component output="false" displayName="Internal GUI" extends="wheels.Global" {
7272
cfcontent(type="text/plain");
7373
}
7474

75-
// Include the TestBox runner directly without buffering
76-
include "/wheels/tests_testbox/runner.cfm";
75+
// Include the TestBox runner
76+
include "/wheels/tests/runner.cfm";
7777

7878
// Ensure we abort to prevent any further processing
7979
abort;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<cfinclude template="/wheels/tests_testbox/runner.cfm">
1+
<cfinclude template="/wheels/tests/runner.cfm">
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
component {
2+
3+
this.name = createUUID();
4+
this.bufferOutput = true;
5+
// this.localMode = "modern"; <--- don't use this, logbox chokes.
6+
// this.applicationTimeout = createTimeSpan( 0, 0, 0, 1 );
7+
8+
// We turn on "sessionManagement" by default since the Flash uses it.
9+
this.sessionManagement = true;
10+
11+
// Put variables we just need internally inside a wheels struct.
12+
this.wheels = {};
13+
this.wheels.rootPath = GetDirectoryFromPath(GetBaseTemplatePath());
14+
15+
this.webrootDir = getDirectoryFromPath( getCurrentTemplatePath() );
16+
this.appDir = getCanonicalPath("_assets");
17+
18+
this.mappings['/app'] = this.appDir;
19+
this.mappings['/wheels'] = this.webrootDir & 'wheels';
20+
21+
//If a plugin has a jar or class file, automatically add the mapping to this.javasettings.
22+
this.wheels.pluginDir = this.appDir & "plugins";
23+
this.wheels.pluginFolders = DirectoryList(
24+
this.wheels.pluginDir,
25+
"true",
26+
"path",
27+
"*.class|*.jar|*.java"
28+
);
29+
public void function onRequestEnd( string targetPage ) {
30+
31+
}
32+
33+
}

vendor/wheels/tests/_assets/controllers/ApiTest.cfc renamed to vendor/wheels/rocketunit_tests/_assets/controllers/ApiTest.cfc

File renamed without changes.

vendor/wheels/tests_testbox/_assets/controllers/Controller.cfc renamed to vendor/wheels/rocketunit_tests/_assets/controllers/Controller.cfc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
component extends="wheels.Controller" {
22

3-
}
3+
4+
}

vendor/wheels/tests_testbox/_assets/controllers/ControllerWithModel.cfc renamed to vendor/wheels/rocketunit_tests/_assets/controllers/ControllerWithModel.cfc

File renamed without changes.

vendor/wheels/tests_testbox/_assets/controllers/ControllerWithModelErrors.cfc renamed to vendor/wheels/rocketunit_tests/_assets/controllers/ControllerWithModelErrors.cfc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ component extends="Controller" {
44
user.addError("firstname", "firstname error1");
55
user.addError("firstname", "firstname error2");
66
user.addError("firstname", "firstname error2");
7-
user.addError("lastname", "lastname error with <strong>bold</strong>");
87

98
}

0 commit comments

Comments
 (0)