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
I just got through adding a test project for all of my projects in a GitLab repo. I added the JUnit test result adapter, and ran a build with a test that would be sure to fail, to ensure that I'd done everything right.
I see a message that says Test summary failed loading results, on GitLab, and upon further inspection it seems that the XML is invalid.
<?xml version="1.0" encoding="utf-8"?>
<testsuites>
<testsuitename="Nemo.Processors.RP65816.Tests, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<testcasename="addressing/absolute address x, long/always fails"time="0.065">
<failuremessage="
.
[32mexpected[36m: [32m2[36m
[31m actual[36m: [31m1[36m
 at Nemo.Processors.RP65816.Tests.ModeTests.modes@137-6.Invoke(Unit unitVar) in /home/adam/Repos/nemo/Nemo.Processors.RP65816.Tests/src/ModeTests.fs:line 137
 at Expecto.Impl.execTestAsync@935-1.Invoke(Unit unitVar) in C:\Users\Anthony Lloyd\src\expecto\Expecto\Expecto.fs:line 939
 at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2)
 at <StartupCode$FSharp-Core>.$Async.StartChild@1641-5.Invoke(AsyncActivation`1 ctxt)
 at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)" />
</testcase>
</testsuites>
As you can see, the failure element contains the character  to encode the beginning of an ANSI escape sequence, representing color. GitLab (And other XML tools) don't recognize this as valid, it's also not part of the XML 1.0 Rev 5 spec.
There are a few solutions to this, like being able to disable colors on the console output, or stripping out such sequences before dumping to XML.
The text was updated successfully, but these errors were encountered:
Hello,
I just got through adding a test project for all of my projects in a GitLab repo. I added the JUnit test result adapter, and ran a build with a test that would be sure to fail, to ensure that I'd done everything right.
I see a message that says
Test summary failed loading results
, on GitLab, and upon further inspection it seems that the XML is invalid.As you can see, the
failure
element contains the character
to encode the beginning of an ANSI escape sequence, representing color. GitLab (And other XML tools) don't recognize this as valid, it's also not part of the XML 1.0 Rev 5 spec.There are a few solutions to this, like being able to disable colors on the console output, or stripping out such sequences before dumping to XML.
The text was updated successfully, but these errors were encountered: