kyrus/python-junit-xml

How can I make the failure title is not 0?

juanWZH opened this issue · 2 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 :)