You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running deno test --junit-path junit.xml, we get the following result
<?xml version="1.0" encoding="UTF-8"?>
<testsuitesname="deno test"tests="1"failures="1"errors="0"time="0.002">
<testsuitename="./main_test.ts"tests="1"disabled="0"errors="0"failures="1">
<testcasename="test"classname="./main_test.ts"time="0.001"line="3"col="6">
<failuremessage="Uncaught AssertionError: Values are not equal. �[90m�[1m[Diff]�[22m�[39m �[31m�[1mActual�[22m�[39m / �[32m�[1mExpected�[22m�[39m�[31m�[1m- 0�[22m�[39m�[32m�[1m+ 1�[22m�[39m">AssertionError: Values are not equal.
�[90m�[1m[Diff]�[22m�[39m �[31m�[1mActual�[22m�[39m / �[32m�[1mExpected�[22m�[39m
�[31m�[1m- 0�[22m�[39m
�[32m�[1m+ 1�[22m�[39m
throw new AssertionError(message);
�[0m�[31m ^�[0m
at �[0m�[1m�[3massertEquals�[0m (�[0m�[36mhttps://deno.land/std@0.217.0/assert/assert_equals.ts�[0m:�[0m�[33m52�[0m:�[0m�[33m9�[0m)
at �[0m�[1m�[3mfn�[0m (�[0m�[36mfile:///tmp/main_test.ts�[0m:�[0m�[33m6�[0m:�[0m�[33m5�[0m)</failure>
</testcase>
</testsuite>
</testsuites>
This contains ANSI escape codes, which is not really preferable. It would be nice to strip ANSI escape codes when it's writing to non-tty. This may be applicable to other types of test reporters.
The text was updated successfully, but these errors were encountered:
Suppose we have a test file that looks like:
Running
deno test --junit-path junit.xml
, we get the following resultThis contains ANSI escape codes, which is not really preferable. It would be nice to strip ANSI escape codes when it's writing to non-tty. This may be applicable to other types of test reporters.
The text was updated successfully, but these errors were encountered: