Skip to content

Commit 493ed91

Browse files
Merge pull request #369 from Leonidas-from-XIV/document-non-deterministic
Add documentation on `MDX_RUN_NON_DETERMINISTIC`
2 parents daf23ed + 5e5b937 commit 493ed91

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,12 @@ back to the default behaviour.
293293
In that case, `ocaml-mdx test <file>` will *not* run the command. Use `ocaml-mdx test
294294
--non-deterministic <file>` to come back to the default behaviour.
295295

296+
Alternatively, instead of passing the option it is also possible to set the
297+
environment variable `MDX_RUN_NON_DETERMINISTIC` to make MDX execute
298+
non-deterministic blocks. This is useful when not calling MDX directly but
299+
through other commands like `dune` or Makefiles etc. Use
300+
`MDX_RUN_NON_DETERMINISTIC=1 ocaml-mdx test` in this case.
301+
296302
#### Named execution environments (since mdx 1.1.0)
297303

298304
Separate environments can be defined for blocks:

0 commit comments

Comments
 (0)