Skip to content

Commit 230b65d

Browse files
committed
Gotchas with re-running tests
Signed-off-by: Lukasz Stafiniak <lukstafi@gmail.com>
1 parent 2aa0841 commit 230b65d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CLAUDE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ opam install cudajit # for CUDA backend
9999
2. Environment variables: `OCANNL_<OPTION>=<value>` (e.g., `OCANNL_BACKEND=cuda`)
100100
3. Config file: `ocannl_config` in current or ancestor directories
101101

102+
**Testing with Different Configurations**:
103+
- When using environment variables for test configuration, Dune won't detect changes and may skip tests
104+
- **Warning**: `dune test --force` does NOT re-run expect tests (only rules with alias fields)
105+
- Reliable ways to ensure tests run with new configuration:
106+
1. Modify `test/config/ocannl_config` directly
107+
2. Run `dune clean` before testing
108+
3. Touch/modify test source files
109+
102110
**Important Debug Settings**:
103111
- `output_debug_files_in_build_directory=true` - enables `build_files/` generation
104112
- `debug_log_from_routines=true` - enables runtime logging

0 commit comments

Comments
 (0)