JUnit test result showing as ignored in TeamCity

Using the XML report processor build feature with the Ant Junit report type for the following results file shows the test case as ignored.

<?xml version="1.0" ?>
<testsuites errors="0" failures="0" name="ABLUnit" tests="1">
    <testsuite name="/dsi/build/test/15.3/progress/source/p.test/myFirstAntTest.p" tests="1" time=".001">
        <testcase name="t_calculateBackDateDays" status="success" time=".001"/>
    </testsuite>
</testsuites>


This results file is from a custom test framework that conforms to JUnit result standards

Result:  Tests passed: 0, ignored: 1
/dsi/build/test/15.3/progress/source/p.test/myFirstAntTest.p (1)
t_calculateBackDateDays 
Ignored in IT:: Dev15.3 #48


Any idea why this test shows up as ignored?  Thanks.
3 comments
Comment actions Permalink

Hi Shea,

What TeamCity version do you use? I've created XML report build feature with the Ant JUnit report in TC 9.0.1 and your example .xml. The result is: "Tests passed: 1".

0
Comment actions Permalink
Sorry Alina, I was just about to reply to my original comment.  I am using TeamCity Professional 9.0.1 (build 32116) on Solaris 10 sparc.  Somehow I posted the wrong results file and since figured out what the difference was.  The file I was having trouble with had a capital "S" in status="Success" under the testcase node which was showing up as ignored.  The results file is being generated by a 3rd party application, but I was able to change the source code to output the status attribute in lower case and reported the issue to the vendor.  Does it make sense that the status value is case sensitive in TC?  Thanks for your help.
1
Comment actions Permalink

I have this issue too with TeamCity 10.0.2 (build 42234) - a third party script generates the JUnit XML with success element as status="PASSED".  I have a PowerShell script with changes this to status="success"

It would be ideal if we could configure Ant JUnit to so that a different status could be used.

0

Please sign in to leave a comment.