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
Copy file name to clipboardExpand all lines: CLAUDE.md
+4-9Lines changed: 4 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,23 +18,18 @@ This tool finds all tests with `todo: true` in their metadata and returns the on
18
18
4. Implement the necessary AST types in `ast/`
19
19
5. Add parser logic in `parser/parser.go`
20
20
6. Add JSON marshaling functions in `parser/parser.go`
21
-
7. Enable the test by removing `todo: true` from its `metadata.json` (set it to `{}`)
22
-
8. Run `go test ./parser/...` to verify
23
-
9.**Check if other todo tests now pass** (see below)
21
+
7. Run `go test ./parser/... -check-todo -v` to auto-enable passing todo tests
22
+
8. Run `go test ./parser/...` to verify all enabled tests pass
24
23
25
24
## Checking for Newly Passing Todo Tests
26
25
27
26
After implementing parser changes, run:
28
27
29
28
```bash
30
-
go test ./parser/... -only-todo -v2>&1| grep "PASS:"
29
+
go test ./parser/... -check-todo -v
31
30
```
32
31
33
-
This shows any todo tests that now pass. Enable those tests by removing `todo: true` from their `metadata.json`.
34
-
35
-
Available test flags:
36
-
-`-only-todo` - Run only todo/invalid_syntax tests (find newly passing tests)
37
-
-`-run-todo` - Run todo/invalid_syntax tests along with normal tests
32
+
This runs todo tests and **automatically updates `metadata.json`** for any tests that now pass (removes the `todo: true` flag). Look for "ENABLED:" in the output to see which tests were updated.
0 commit comments