Change By: Thomas Bartensud (06/Jul/13 2:04 PM)
Description: Job build is marked as failed if NUnit test result contains only ignored tests.

It could be said that a test suite with only ignored tests is useless and should be marked as failed. But I have an use case in a highly distributed test environment where it's a blocker for me: 
A high number of a parameterized unit test is splitted up (by a filtering mechanism) in order to distribute the test executions on jenkins slaves (via matrix build). In certain cases the dynamic test splitting results in only one test case per jenkins job. And if this test case is marked as ignored then the whole (distributed) build fails:(


This can be easily fixed in NUnitPublisher.java by adding the {color:red}red part{color}:
{quote}
if (result.getPassCount()==0 && result.getFailCount()==0 {color:red}&& result.getSkipCount()==0{color})
 \  {
   throw new AbortException("None of the test reports contained any result");
}
{quote}
I tested this fix in my environment and it works without any issues for several days now.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to