Parse JUnit content
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem to solve
When I'm using a tool like Catch for C++ testing or py.test for Python testing, I want to see contents of the <failure message> block outside of the downloadable report so that I can quickly diagnose and fix test failures. Today this data is not visible in the trace view of the Test Summary widget on the MR or the JUnit Report.
Intended users
- Sasha (Software Developer) - who is developing tests and not seeing the needed error text in the UI today.
User experience goal
The user should be able to use the UI to see error text for JUnit formatted test results for C++ or Python that puts errors in the <failure message> block of the report.
Proposal
Further details
Run any test suite that will get that as an JUnit report:
<?xml version="1.0"?>
<testsuites>
<testsuite errors="0" failures="1" name="Elixir.ElixirJunitTestsTest" tests="3" time="0.00">
<testcase classname="Elixir.ElixirJunitTestsTest" name="test knows answer to the life, the universe, and the everything" time="0.00">
<failure message="error: Assertion with == failed
code: assert ElixirJunitTests.answer() == 42
left: 666
right: 42
"> test/elixir_junit_tests_test.exs:10: ElixirJunitTestsTest."test knows answer to the life, the universe, and the everything"/1
</failure>
</testcase>
<testcase classname="Elixir.ElixirJunitTestsTest" name="test greets the world" time="0.00"/>
<testcase classname="Elixir.ElixirJunitTestsTest" name="doctest ElixirJunitTests.hello/0 (1)" time="0.00"/>
</testsuite>
</testsuites>
I do not see message attribute value anywhere:
Permissions and Security
Documentation
Availability & Testing
What does success look like, and how can we measure that?
What is the type of buyer?
Is this a cross-stage feature?
Links / references
Edited by 🤖 GitLab Bot 🤖

