config.nims 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. switch("path", "$lib/../testament/lib")
  2. # so we can `import stdtest/foo` inside tests
  3. # Using $lib/../ instead of $nim/ so you can use a different nim to run tests
  4. # during local testing, e.g. nim --lib:lib.
  5. ## prevent common user config settings to interfere with testament expectations
  6. ## Indifidual tests can override this if needed to test for these options.
  7. switch("colors", "off")
  8. switch("excessiveStackTrace", "off")
  9. when (NimMajor, NimMinor, NimPatch) >= (1,5,1):
  10. # to make it easier to test against older nim versions, (best effort only)
  11. switch("filenames", "legacyRelProj")
  12. switch("spellSuggest", "0")
  13. # for std/unittest
  14. switch("define", "nimUnittestOutputLevel:PRINT_FAILURES")
  15. switch("define", "nimUnittestColor:off")
  16. switch("define", "nimLegacyTypeMismatch")
  17. hint("Processing", off)
  18. # dots can cause annoyances; instead, a single test can test `hintProcessing`
  19. # uncomment to enable all flaky tests disabled by this flag
  20. # (works through process calls, e.g. tests that invoke nim).
  21. # switch("define", "nimTestsEnableFlaky")
  22. # switch("hint", "ConvFromXtoItselfNotNeeded")
  23. # switch("warningAsError", "InheritFromException") # would require fixing a few tests
  24. # experimental APIs are enabled in testament, refs https://github.com/timotheecour/Nim/issues/575
  25. # sync with `kochdocs.docDefines` or refactor.
  26. switch("define", "nimExperimentalLinenoiseExtra")
  27. # preview APIs are expected to be the new default in upcoming versions
  28. switch("define", "nimPreviewFloatRoundtrip")
  29. #switch("define", "nimPreviewDotLikeOps") # deprecated?
  30. switch("define", "nimPreviewJsonutilsHoleyEnum")
  31. switch("define", "nimPreviewHashRef")
  32. switch("define", "nimPreviewRangeDefault")
  33. switch("define", "nimPreviewNonVarDestructor")
  34. switch("warningAserror", "UnnamedBreak")
  35. switch("legacy", "verboseTypeMismatch")
  36. switch("experimental", "vtables")
  37. switch("experimental", "openSym")