mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
#498 "Test failures not appearing in test trend chart".
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3248 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
cfa6087d0f
commit
add0008665
2 files changed
+3
-6
No files matched your search
@@ -71,14 +71,14 @@ public class JUnitResultArchiver extends Publisher implements Serializable {
|
||||
|
||||
|
||||
TestResultAction action = new TestResultAction(build, result, listener);
|
||||
build.getActions().add(action);
|
||||
|
||||
TestResult r = action.getResult();
|
||||
|
||||
if(r.getPassCount()==0 && r.getFailCount()==0) {
|
||||
listener.getLogger().println("Test reports were found but none of them are new. Did tests run?");
|
||||
// no test result. Most likely a configuration error or fatal problem
|
||||
build.setResult(Result.FAILURE);
|
||||
} else {
|
||||
build.getActions().add(action);
|
||||
}
|
||||
|
||||
if(r.getFailCount()>0)
|
||||
|
||||
@@ -2,11 +2,10 @@ package hudson.tasks.test;
|
||||
|
||||
import hudson.Functions;
|
||||
import hudson.Util;
|
||||
import hudson.model.AbstractBuild;
|
||||
import hudson.model.Action;
|
||||
import hudson.model.Build;
|
||||
import hudson.model.Project;
|
||||
import hudson.model.Result;
|
||||
import hudson.model.AbstractBuild;
|
||||
import hudson.util.ChartUtil;
|
||||
import hudson.util.ChartUtil.NumberOnlyBuildLabel;
|
||||
import hudson.util.ColorPalette;
|
||||
@@ -90,8 +89,6 @@ public abstract class AbstractTestResultAction<T extends AbstractTestResultActio
|
||||
b = b.getPreviousBuild();
|
||||
if(b==null)
|
||||
return null;
|
||||
if(b.getResult()== Result.FAILURE)
|
||||
continue;
|
||||
U r = b.getAction(type);
|
||||
if(r!=null)
|
||||
return r;
|
||||
|
||||
Reference in new issue
Block a user