Simple library to take LabVIEW Unit Test Framework results and record them in a JUnit-compatible XML format suitable for consumption by continuous integration packages like Jenkins.
Releases: https://github.com/LabVIEW-DCAF/UTF-Test/releases
Source code: https://github.com/LabVIEW-DCAF/UTF-Test
Questions, issue reports, and pull requests welcomed on the Github repository.
Hi Matt
We are using the NI UTF JUnit Report tool for generating the report we can use in Jenkins, but Jenkins complains and says that the format is wrong...can you help me
Small extract of the console output:
....
Post stage [Pipeline] xunit INFO: Starting to record. INFO: Processing JUnit INFO: [JUnit] - 1 test report file(s) were found with the pattern 'Report/*.xml' relative to 'C:\git\THS_Modules' for the testing framework 'JUnit'. WARNING: The file 'C:\git\THS_Modules\Report\THS-UT.xml' is an invalid file. WARNING: At line 3 of file:/C:/git/THS_Modules/Report/THS-UT.xml:cvc-complex-type.3.2.2: Attribute 'assertions' is not allowed to appear in element 'testsuites'. WARNING: At line 3 of file:/C:/git/THS_Modules/Report/THS-UT.xml:cvc-complex-type.3.2.2: Attribute 'skipped' is not allowed to appear in element 'testsuites'. WARNING: At line 3 of file:/C:/git/THS_Modules/Report/THS-UT.xml:cvc-complex-type.3.2.2: Attribute 'skips' is not allowed to appear in element 'testsuites'. WARNING: At line 3 of file:/C:/git/THS_Modules/Report/THS-UT.xml:cvc-complex-type.3.2.2: Attribute 'timestamp' is not allowed to appear in element 'testsuites'. WARNING: At line 4 of file:/C:/git/THS_Modules/Report/THS-UT.xml:cvc-complex-type.3.2.2: Attribute 'assertions' is not allowed to appear in element 'testsuite'. WARNING: At line 4 of file:/C:/git/THS_Modules/Report/THS-UT.xml:cvc-complex-type.3.2.2: Attribute 'disabled' is not allowed to appear in element 'testsuite'. WARNING: At line 4 of file:/C:/git/THS_Modules/Report/THS-UT.xml:cvc-complex-type.3.2.2: Attribute 'skips' is not allowed to appear in element 'testsuite'. WARNING: At line 4 of file:/C:/git/THS_Modules/Report/THS-UT.xml:cvc-pattern-valid: Value '4.517258' is not facet-valid with respect to pattern '(([0-9]{0,3},)*[0-9]{3}|[0-9]{0,3})*(\.[0-9]{0,3})?' for type 'SUREFIRE_TIME'. WARNING: At line 4 of file:/C:/git/THS_Modules/Report/THS-UT.xml:cvc-attribute.3: The value '4.517258' of attribute 'time' on element 'testsuite' is not valid with respect to its type, 'SUREFIRE_TIME'.
....
/Christian
If you find what the other importer was complaining about, please feel free to raise an issue on the Github repo. Even better, fork and make a pull request with the fix 🙂