Hi,
I was wondering if there a way to do use testament to check errormsg coming from another module without having the test fail with reFileDiffers ?
Example : local.nim
when defined(work):
echo "Ok"
else:
{.fatal: "KO".}
tests/test.nim
discard """
action: "compile"
errormsg: "KO"
"""
import local
Right now it fails :
$ testament r test.nim
Output:
FAIL: tests/test.nim C
Test "tests/test.nim" in category "test.nim"
Failure: reFilesDiffer
Expected:
tests/test.nim
Gotten:
local.nim
FAILURE! total: 1 passed: 0 skipped: 0 failed: 1
How can I make this pass with testament ?