Skip to content
New issue

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

Support Bruno exported JUnit reports #8

Open
yuanhaomichael opened this issue Jan 3, 2025 · 0 comments
Open

Support Bruno exported JUnit reports #8

yuanhaomichael opened this issue Jan 3, 2025 · 0 comments

Comments

@yuanhaomichael
Copy link

yuanhaomichael commented Jan 3, 2025

We are using Bruno API testing framework as well as its CLI tool to export test results as a JUnit report, and we need to convert the junit to ctrf for Github summary.

However, using this converter always result in getting a report with all test cases passed, even when there are failed test cases.

The reason is that this converter classify failure and error XML elements without any text as passed cases.

The below is classified as a passed test case (from Bruno's JUnit report)

<testcase name="testMultiplication" classname="com.example.UnitTests" time="0.020">
      <failure message="Expected 10 but was 9" type="AssertionError"/>
</testcase>

The below is classified as a failed test case

<testcase name="testMultiplication" classname="com.example.UnitTests" time="0.020">
      <failure message="Expected 10 but was 9" type="AssertionError">Something</failure>
</testcase>

Is it possible to change so that even when failure element has no text inside it will still be able to classify it as a failed test case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant