Files
Nim/tests/config.nims
Timothee Cour 4d3f3513e2 followup #16067 --spellSuggest (#17401)
* followup #16067 --spellSuggest

* enable --spellSuggest by default

* fixup
2021-03-17 07:40:29 +01:00

30 lines
1.1 KiB
Nim

switch("path", "$lib/../testament/lib")
# so we can `import stdtest/foo` inside tests
# Using $lib/../ instead of $nim/ so you can use a different nim to run tests
# during local testing, e.g. nim --lib:lib.
## prevent common user config settings to interfere with testament expectations
## Indifidual tests can override this if needed to test for these options.
switch("colors", "off")
switch("listFullPaths", "off")
switch("excessiveStackTrace", "off")
switch("spellSuggest", "0")
# for std/unittest
switch("define", "nimUnittestOutputLevel:PRINT_FAILURES")
switch("define", "nimUnittestColor:off")
switch("define", "nimLegacyTypeMismatch")
hint("Processing", off)
# dots can cause annoyances; instead, a single test can test `hintProcessing`
# uncomment to enable all flaky tests disabled by this flag
# (works through process calls, e.g. tests that invoke nim).
# switch("define", "nimTestsEnableFlaky")
# switch("hint", "ConvFromXtoItselfNotNeeded")
# experimental API's are enabled in testament, refs https://github.com/timotheecour/Nim/issues/575
switch("define", "nimExperimentalAsyncjsThen")