You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update CLAUDE.md to reflect grouped attribute arrays in TestoClasses
Matches refactor from 75a5fcc: attributes are now organized into
TEST_ATTRIBUTES, TEST_INLINE_ATTRIBUTES, DATA_ATTRIBUTES, BENCH_ATTRIBUTES
arrays and spread across the codebase instead of being duplicated.
https://claude.ai/code/session_01TmFvjfMtoxTvddQRBzsbPN
Other constants: `ASSERT` (`\Testo\Assert`), `EXPECT` (`\Testo\Expect`), `ASSERTION_EXCEPTION`.
152
+
153
+
These arrays are spread into `RUNNABLE_ATTRIBUTES` (line markers) and `MEANINGFUL_ATTRIBUTES` (PsiUtil) — adding a new attribute to the group array automatically propagates it everywhere.
155
154
156
155
### Test Detection Logic (mixin.kt)
157
156
158
157
A PHP element is recognized as a Testo test when:
159
-
-**Method:** public + name starts with `test`, OR has `#[Test]` / `#[TestInline]` attribute
160
-
-**Function:** has `#[Test]` / `#[TestInline]` attribute (standalone test functions)
161
-
-**Benchmark:** has `#[BenchWith]` attribute
158
+
-**Method:** public + name starts with `test`, OR has any `TEST_ATTRIBUTES` / `TEST_INLINE_ATTRIBUTES`
159
+
-**Function:** has any `TEST_ATTRIBUTES` / `TEST_INLINE_ATTRIBUTES` (standalone test functions)
160
+
-**Benchmark:** has any `BENCH_ATTRIBUTES`
162
161
-**Class:** name ends with `Test` or `TestBase`, OR contains test/bench methods
163
162
-**File:** filename matches test class pattern, OR contains test classes/functions/benchmarks
0 commit comments