Python script to generate JUnit report from another testing result

后端 未结 6 1837
悲哀的现实
悲哀的现实 2021-02-01 21:53

I have an acceptance test case, the result is plain text. I want to use Jenkins to show the result, and the JUnit format is suitable for me.

So I want to check whether t

6条回答
  •  一整个雨季
    2021-02-01 22:26

    The collective.recipe.xmltestreport buildout recipe package does exactly this. It takes test runner output and creates a XML file suitable for JUnit. It is, however, buildout specific and uses the zope.testrunner test runner package.

    If switching to buildout is not an option for you, you could study it's source code to extract the important parts.

提交回复
热议问题