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-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,8 +77,10 @@ opam install cudajit # for CUDA backend
77
77
78
78
### Testing
79
79
80
-
- Tests are implemented either as inline expectations using `ppx_expect`; or as cram-style tests where an `.ml` file is compiled, executed, and its output compared against an `.expected` file
81
-
- Tutorial files in `test/` serve as both documentation and integration tests
80
+
- Tests are implemented either as inline expectations using `ppx_expect`; or as cram-style tests using Dune's `test` stanza where an `.ml` file is compiled, executed, and its output compared against an `.expected` file
81
+
- The two approaches are exclusive: a test using using `.expected` file target cannot also use `%expect` inline expectations
82
+
-`.expected` tests are easier to debug, `%expect` tests should only be used when the outputs are illustrative
83
+
- Tutorial files, i.e. `%expect` tests, in `test/` serve as both documentation and integration tests
82
84
- Use `dune promote` to accept test output changes
83
85
-**Test Placement Guidelines**:
84
86
* Always add tests under one of the test subdirectories
0 commit comments