Separate error message from console output #7
Labels
x:action/improve
Improve existing functionality/content
x:knowledge/elementary
Little Exercism knowledge required
x:module/test-runner
Work on Test Runners
x:size/medium
Medium amount of work
x:type/coding
Write code that is not student-facing content (e.g. test-runners, generators, but not exercises)
According to the test runner interface there is a distinction to be made between the
Message
(error message in case the test failed) andOutput
(the output of the test including user output).When parsing the output of
go test --json
we currently write all lines marked with"Action":"output"
into theOutput
field. Instead we should additionally check the"Output"
if it has the following pattern and write that in theMessage
field.Sample of line to be written to the
Message
field:Suggestion is to use a regex to search for the prefix
^\t+(.+?)_test\.go:/d+:
(or similar) and use these line(s) to fillMessage
in the test runner output.The text was updated successfully, but these errors were encountered: