Skip to content

Commit d03914c

Browse files
bpamiriclaude
andcommitted
docs: update test path references after directory rename
Update stale references to tests_testbox and vendor/wheels/tests/ across user docs, AI docs, CONTRIBUTING.md, and CLAUDE.md to reflect the new directory structure (tests_testbox → tests, tests → rocketunit_tests). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 545e98d commit d03914c

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.ai/wheels/testing/unit-testing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Wheels has two test frameworks. **All new tests must use TestBox.**
77
| | TestBox (current) | RocketUnit (legacy) |
88
|---|---|---|
99
| **Syntax** | `describe`/`it`/`expect` (BDD) | `test_methodName()` + `assert()` |
10-
| **Base class** | `wheels.WheelsTest` | `wheels.tests.Test` |
11-
| **Location** | `tests/specs/` | `vendor/wheels/tests/` |
10+
| **Base class** | `wheels.WheelsTest` | `wheels.Test` |
11+
| **Location** | `vendor/wheels/tests/specs/` | `vendor/wheels/rocketunit_tests/` |
1212
| **Runner URL** | `/wheels/app/tests` | `/wheels/tests/core` |
1313
| **Status** | Active, all new tests | Legacy, backwards-compat only |
1414

@@ -197,4 +197,4 @@ DROP TABLE IF EXISTS c_o_r_e_authors <!--- parent --->
197197

198198
### 5. Pre-existing Test Failures
199199

200-
The `vendor/wheels/tests/` RocketUnit suite has some pre-existing failures (e.g., in `model.errors`). Don't chase these — they're known issues in the legacy suite. Focus on making your TestBox specs green.
200+
The `vendor/wheels/rocketunit_tests/` legacy RocketUnit suite has some pre-existing failures (e.g., in `model.errors`). Don't chase these — they're known issues in the legacy suite. The RocketUnit test files have been removed; only infrastructure (Test.cfc, populate.cfm, _assets/) remains for backwards compatibility. Focus on making your TestBox specs green.

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Every variable passed from controller to view needs a cfparam declaration.
156156
- **config()**: All model associations/validations/callbacks and controller filters/verifies go in `config()`
157157
- **Naming**: Models are singular PascalCase (`User.cfc`), controllers are plural PascalCase (`Users.cfc`), table names are plural lowercase (`users`)
158158
- **Parameters**: `params.key` for URL key, `params.user` for form struct, `params.user.firstName` for nested
159-
- **extends**: Models extend `"Model"`, controllers extend `"Controller"`, tests extend `"wheels.Test"` or `"wheels.WheelsTest"`
159+
- **extends**: Models extend `"Model"`, controllers extend `"Controller"`, tests extend `"wheels.WheelsTest"` (legacy: `"wheels.Test"` for RocketUnit)
160160
- **Associations**: All named params when using options: `hasMany(name="orders")`, `belongsTo(name="user")`, `hasOne(name="profile")`
161161
- **Validations**: Property param is `property` (singular) for single, `properties` (plural) for list: `validatesPresenceOf(properties="name,email")`
162162

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ We welcome PRs of all sizes — from typo fixes to major features. To make revie
106106

107107
A feature or enhancement is not complete until all of the following are satisfied:
108108

109-
* **Tests** -- Unit tests covering happy path, edge cases, and error conditions in `vendor/wheels/tests/`
109+
* **Tests** -- Unit tests covering happy path, edge cases, and error conditions in `vendor/wheels/tests/specs/`
110110
* **Framework Docs** -- New or updated page in `docs/src/` with a corresponding entry in `docs/src/SUMMARY.md`
111111
* **AI Reference Docs** -- New or updated file in `.ai/wheels/` so AI assistants have accurate context
112112
* **CLAUDE.md** -- Updated if the feature changes model, controller, or view conventions
113113
* **CHANGELOG.md** -- Entry under the `[Unreleased]` section
114-
* **Test runner passes** -- All existing tests still pass (`/wheels/tests/core?format=json`)
114+
* **Test runner passes** -- All existing tests still pass (`/wheels/app/tests?format=json`)
115115

116116
Bug-fix PRs require tests and a CHANGELOG entry at minimum. Documentation-only PRs are exempt from the test requirement.
117117

docs/src/working-with-wheels/testing-your-application.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ For detailed information on TestBox runners and configuration options, refer to
179179
if(!structKeyExists(url, "format") || url.format eq "html"){
180180
// Use our html template
181181
type = "App";
182-
include "/wheels/tests_testbox/html.cfm";
182+
include "/wheels/tests/html.cfm";
183183
}
184184
185185
private function setTestboxEnvironment() {

docs/src/working-with-wheels/using-the-test-environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ The TestUI includes features to help manage the test environment:
246246
When contributing to Wheels, you may need to create new tests for your code changes:
247247

248248
1. Create a new test file in the appropriate directory:
249-
- For core functions: `vendor/wheels/tests_testbox/specs/functional/YourTest.cfc`
249+
- For core functions: `vendor/wheels/tests/specs/functional/YourTest.cfc`
250250

251251
If you are adding in the already created test files, then you have to add in the same tests file, otherwise you can create a separate test file.
252252

0 commit comments

Comments
 (0)