Skip to content

How to integrate test results into jenkins #209

Closed
@ncarrier

Description

@ncarrier

Hello,
I'm trying to integrate the xml output of unit tests into jenkins, using the xUnit plugin.
Software versions are:

  • xUnit plugin: 2.3.7
  • jenkins: 2.204.1
  • python: 3.7.4
  • xmlrunner: 2.5.1

The relevant configuration is the following.
xmlrunner-xUnit-configuration

At the end of the build, I have the following log lines:

16:37:16 INFO: Processing CUnit-2.1 (default)
16:37:16 INFO: [CUnit-2.1 (default)] - 1 test report file(s) were found with the pattern 'test-result-*.xml' relative to '/var/lib/jenkins/workspace/libsc-common-test/PRODUCT/diamond' for the testing framework 'CUnit-2.1 (default)'.
16:37:16 WARNING: All test reports are empty.

Yet the xml files contains:

<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
	<testsuite errors="0" failures="0" file=".py" name="ConfTests-20200115103230" skipped="0" tests="6" time="0.333" timestamp="2020-01-15T10:32:43">
		<testcase classname="ConfTests" file="libsc-common_tests" line="129" name="test_NWP_BuildTime" time="0.144" timestamp="2020-01-15T10:32:43">
			<system-out>
<![CDATA[]]>			</system-out>
			<system-err>
<![CDATA[test_NWP_BuildTime
Build Time (NWP_BuildTime): Jan 15 2020 11:32:20
]]>			</system-err>
		</testcase>
		<testcase classname="ConfTests" file="libsc-common_tests" line="93" name="test_NWP_GetBuildTime" time="0.045" timestamp="2020-01-15T10:32:43">
...

Can it be related to issue #201 ?
Is there a way I can get this to work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions