config.nims 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. # preview APIs are expected to be the new default in upcoming versions
  25. #switch("define", "nimPreviewDotLikeOps") # deprecated?
  26. switch("define", "nimPreviewJsonutilsHoleyEnum")
  27. switch("define", "nimPreviewHashRef")
  28. switch("define", "nimPreviewRangeDefault")
  29. switch("define", "nimPreviewNonVarDestructor")
  30. switch("warningAserror", "UnnamedBreak")
  31. when not defined(testsConciseTypeMismatch):
  32. switch("legacy", "verboseTypeMismatch")
  33. switch("experimental", "vtables")
  34. switch("experimental", "openSym")
  35. switch("experimental", "typeBoundOps")