How to deal with Julia's error messages in test files?
GAP's function Test treats GAP's error messages in a special way,
only the first line of the message is expected in the test file,
not the whole message that appears in a normal GAP session.
When a Julia error happens, Test seems to expect the whole error message.
This is problematic because the message contains file paths.
Is there a way to teach Test to be happy with the first line of the message?
Test knows nothing about error messages being special in GAP. In GAP, we simply disable backtraces when running tests in Test, thus those extra lines are never printed (and note that sometimes GAP error messages are actually or 2 or more lines before the backtrace; in that case, all of these lines must be in the .tst file).
Perhaps one can disable or otherwise suppress the backtraces generated by Julia for our tests? Or perhaps you could wrap your test in a try/catch ? It depends a bit on what exactly you want to test?