jeudi 30 juin 2016

Jenkins test result parsing

I've got a Jenkins with a lot of jobs. These jobs do tests and produce test outputs in xml. Those xml test results look - pretty standard - like this:

<testsuites name="testsuitesname">
  <testsuite name="testsuitename">
    <testcase classname="classname" name="testcasename">
      blabla
    </testcase>
  </testsuite>
</testsuites>

When you use the option "Publish JUnit testwhatever" the structure will be like this:

(root) > classname > testcasename

There is no "testsuitesname" and no "testsuitename" in this hierarchy.

Is there any option either

a) add the testsuitesname and testsuitename to the hierarchy? ((root) > testsuitesname > testsuitename > classname > testclassname)

or b) somehow add more hierarchy to the "testcase" tag?

Because my test results are quite big I want to add more hierarchy/structure to it and not just two levels like it is now to gain more overview over all of those results.

Can anybody help me or had a similar problem?

Best

Andy

Aucun commentaire:

Enregistrer un commentaire