Closed tinovyatkin closed 4 years ago
That caused by ANSI characters in test name, resulting in invalid XML:
<testCase name="Line Items Creation One way transfer in [35mUSD[39m on a Minivan" duration="125" />
Thanks for reporting and making a PR I will try to merge it somewhere today
I'm still getting this issue but when failure message have ANSI caracteres.
In my case is something like this:
[2mexpect([22m[31mreceived[39m[2m).[22mtoBe[2m([22m[32mexpected[39m[2m)
is it necessary to remove all te ANSI caracteres from the report?
So if I understand you correctly @thiagotrentin you get this when a test that contains ANSI chars fails? I will try to fix it this evening. Thanks for reporting
you're right @ sh33dafi, but unlike the reported problem, in my case, the error occurs when the error message contains ANSI characters, as you can see in this example:
<testCase name="Testes unitários para a classe CardUtils. Converte um número de cartão Elo e busca a imagem correspondente." duration="7">
<failure message="Error"><![CDATA[Error: [2mexpect([22m[31mreceived[39m[2m).[22mtoBe[2m([22m[32mexpected[39m[2m) // Object.is equality[22m
Expected: [32m"elo"[39m
Received: [31mnull[39m
@tinovyatkin Should be fixed in v0.2.6 can you verify?
it works, thank you @sh33dafi !
Locked due to an inactive of 90 days
Getting following error on generated file. Looks like some characters needs to be encoded:
Not related to #7, as testing with the fork version results in the same error.