nim-codex/tests/config.nims
markspanbroek 086b5c3914
[build] fix: ignore logging when running singular tests (#369)
* [build] fix: ignore logging when running singular tests

Ensures that logging is ignored at runtime when running
individual tests using `nim c -r tests/...`

* [build] Allow tests to be run with -d:chronicles_log_level

When running tests with chronicles_log_level set, do not
hide the the logs.
2023-03-16 15:32:09 +01:00

9 lines
308 B
Nim

--path:".."
--threads:on
--tlsEmulation:off
when not defined(chronicles_log_level):
--define:"chronicles_log_level:NONE" # compile all log statements
--define:"chronicles_sinks:textlines[dynamic]" # allow logs to be filtered at runtime
--"import":"logging" # ensure that logging is ignored at runtime