Bitbucket Pipelines test reports not showing

Tom Böhling October 29, 2020

I create a junit.xml file, which is recognized by the system, as indicated by the failed tests.

image.png

But the "Tests" Tab shows nothing.

image.png

My guess is that the generated XML is not parsed correctly. Therefore I saved the file and analyzed it.

<?xml version="1.0" encoding="UTF-8"?><testsuites>  <testsuite errors="1" failures="0" tests="1" skipped="0" name=".opt.atlassian.pipelines.agent.build.test.widget" timestamp="2020-10-29T23:13:35">    <properties>      <property name="platform" value="vm"/>    </properties>    <testcase classname=".opt.atlassian.pipelines.agent.build.test.widget" name="Counter increments smoke test" time="0.676">      <error message="1 error, see stacktrace for details">Error:\n\nTest failed. See exception logs above.      The test description was: Counter increments smoke test</error>      <system-out><!--detailed error output here--></system-out>    </testcase>  </testsuite></testsuites>

But unfortunately I have no comparison to a correct XML-file.

For example, I deleted the entire system out block, but that did not work.

Do you have any precise information of the syntax of this XML-file or can someone provide me a correct XML-file?

 

Thanks,

Tom Böhling

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events