Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Mappings Between Cucumber - JUNIT XML - TestRail for jenkinssco/testrail-plugin
Cucmber-jvm Project (via Jekins) JUNIT XML REPORT (in surefire-reports folder)* TestRail UI (as provided by jenkinsci/testrail-plugin)
NameSpace of TestProject class testsuite tag 'Section' (looks like a folder)
Feature testcase tag 'classname' attribute N/A
Scenario testcase tag 'name' attribute Testcase as result (ignores testcases in other 'sections)
Steps Only in failure tags Only refered to in failed result cucumber 'stacktrace'

* Differs from cucumber-junit-report.xml my the root of target dir:

  • testsuite name=cucmber.runtime.formatter.JUnitFormatter
  • each testcase has a nested system-out CDATA section that report on all step results
Copy link

systemsincode commented Jul 31, 2019

  • I just noticed testrail-plugin can upload stale results. I had moved a repo which caused my jenkins job to fail and the plugin noticed the xml was old but uploaded a job execution anyway :(

Copy link

systemsincode commented Aug 1, 2019

I'm trying to identify how to get a folder tree of features to upload to TestRail

This conversation tells me that surefire will only export a xml per test class
I can't find the surefire bug raised and mentioned in the above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment