We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
with valid JUNIT XML passing the XSD validation (https://github.com/behave/behave/blob/main/etc/junit.xml/junit-4.xsd).
Steps to reproduce the behavior: Use jtest-unit reporter an result XML with or tag with attribute "message"
Error: stackTrace.split is not a function
here a result which cannot be parsed:
<?xml version="1.0" encoding="UTF-8"?> <testsuites tests="1" failures="1" disabled="0" errors="0" time="0.001" name="Failure"> <testsuite name="Test" tests="6" failures="1" disabled="0" errors="0" time="0.001"> <testcase name="Test" status="run" time="0" classname="Fails"> <failure message="error" type=""><![CDATA[error.cpp:01 Expected: true Which is: false >]]></failure> </testcase> </testsuite> </testsuites>
at
test-reporter/src/parsers/jest-junit/jest-junit-parser.ts
Line 88 in 95058ab
const details = tc.failure[0];
const details = tc.failure[0] || tc.failure[0]._;
The text was updated successfully, but these errors were encountered:
Update jest-junit-parser.ts
cbda75a
Added fix from dorny#506
I'm seeing the same fault - is there a fix yet?
Sorry, something went wrong.
A pull request with code changes and tests is welcome.
dorny
j-catania
dharmendrasha
No branches or pull requests
Describe the bug
with valid JUNIT XML passing the XSD validation (https://github.com/behave/behave/blob/main/etc/junit.xml/junit-4.xsd).
To Reproduce
Steps to reproduce the behavior:
Use jtest-unit reporter an result XML with or tag with attribute "message"
Expected behavior
Error: stackTrace.split is not a function
Screenshots
Additional context
here a result which cannot be parsed:
Potential fix:
at
test-reporter/src/parsers/jest-junit/jest-junit-parser.ts
Line 88 in 95058ab
replace
const details = tc.failure[0];
withconst details = tc.failure[0] || tc.failure[0]._;
The text was updated successfully, but these errors were encountered: