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. # 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("define", "nimPreviewCheckedClose")
  31. switch("define", "nimPreviewAsmSemSymbol")
  32. switch("warningAserror", "UnnamedBreak")
  33. when not defined(testsConciseTypeMismatch):
  34. switch("legacy", "verboseTypeMismatch")
  35. switch("experimental", "vtables")
  36. switch("experimental", "openSym")
  37. switch("experimental", "typeBoundOps")