Hi Guys,
On Friday I came across a Perl program that converts TAP to JUnit XML.
It needs a Perl module XML::Generator which does not come with Perl, but
should be available for most Linux distro's or from CPAN. I have the
necessary build system changes to add that script and support a new
'make junitfiles' target (better names welcomed); as long as a user
doesn't build that target they shouldn't need the XML Perl module.
Any interest in adding this to Base, and if so to which branch? It
should allow the other CI systems which don't handle TAP to display test
results, and I might switch the APS Jenkins to use this since its TAP
module is flaky.
> tux% cat epicsEnvTest.tap
> 1..3
> ok 1 - epicsEnvSet correctly modifies environment
> ok 2 - Child thread sees parent environment values
> # Child and parent threads share a common environment
> ok 3 - PARENT environment variable not modified
becomes
> tux% cat epicsEnvTest.xml
> <testsuites>
> <testsuite failures="0"
> errors="0"
> time="0"
> tests="3"
> name="epicsEnvTest"
> id="1">
> <testcase time="0"
> name="Test_01"
> classname="epicsEnvTest.Tests" />
> <testcase time="0"
> name="Test_02"
> classname="epicsEnvTest.Tests" />
> <testcase time="0"
> name="Test_03"
> classname="epicsEnvTest.Tests" />
> </testsuite>
> </testsuites>
Test failures include the full "not ok" text, but #diagnostics are not
included in the XML output at all.
- Andrew
--
Arguing for surveillance because you have nothing to hide is no
different than making the claim, "I don't care about freedom of
speech because I have nothing to say." -- Edward Snowdon
- Replies:
- Re: Interest in JUnit xml Test Results? Ralph Lange
- Navigate by Date:
- Prev:
Jenkins build is back to normal : epics-base-3.15-win64-test #109 APS Jenkins
- Next:
Re: Interest in JUnit xml Test Results? Ralph Lange
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
<2017>
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
scanIoTest hangup on 3.15 (Cygwin) Andrew Johnson
- Next:
Re: Interest in JUnit xml Test Results? Ralph Lange
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
<2017>
2018
2019
2020
2021
2022
2023
2024
|