kyrus / python-junit-xml

A Python module for creating JUnit XML test result documents that can be read by tools such as Jenkins. If you are ever working with test tool or test suite written in Python and want to take advantage of Jenkins' pretty graphs and test reporting capabilities, this module will let you generate the XML test reports.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I make the failure title is not 0?

juanWZH opened this issue · comments

I want to judge a failure testcase using junit-xml v1.0, how can I make the failure title is not 0 in testsuite?

You can use the add_failure_info function of TestCase. You have the same kind of functions add_error_info and add_skipped_info.
Not the easiest and most intuitive at first, but everything is there :)