[JIRA] [junit-plugin] (JENKINS-28479) "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail

2016-01-14 Thread jenk...@post2.25u.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Alexander Ost commented on  JENKINS-28479 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail  
 
 
 
 
 
 
 
 
 
 
Daniel, we're using a freestyle job to run tests in a custom unit test environment. If _any _of the tests fails, then the run will be marked as FAILED. 
The junit-plugin is used to display the test results and to provide convenient access to logs etc. Some of this information (trend plot, link to latest test result) are showing up only when there has ever been at least one PASSED or UNSTABLE run – and that's why I created this issue. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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/d/optout.


[JIRA] [junit-plugin] (JENKINS-28479) "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail

2016-01-12 Thread db...@cloudbees.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Daniel Beck commented on  JENKINS-28479 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail  
 
 
 
 
 
 
 
 
 
 
Right, so what happens here is that Maven by default fails the build if tests fail, and accepts an optional argument to not do that. Maven jobs OTOH are so magical that they set that option by default. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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/d/optout.


[JIRA] [junit-plugin] (JENKINS-28479) "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail

2016-01-12 Thread db...@cloudbees.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Daniel Beck edited a comment on  JENKINS-28479 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail  
 
 
 
 
 
 
 
 
 
 Right, so what happens here is that Maven by default fails the build if tests fail, and accepts an optional argument to not do that.  The expectation in Jenkins is that in such a case, builds should be unstable, i.e. the build step succeeds and e.g. the JUnit plugin would mark it unstable since there are failed tests.  Maven jobs OTOH are so [magical|http://javaadventure.blogspot.de/2013/11/jenkins-maven-job-type-considered-evil.html] that they set that option by default. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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/d/optout.


[JIRA] [junit-plugin] (JENKINS-28479) "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail

2016-01-11 Thread aburdajew...@cloudbees.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Allan BURDAJEWICZ commented on  JENKINS-28479 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail  
 
 
 
 
 
 
 
 
 
 
A Maven Job with test failures is marked as UNSTABLE (Build Success in the logs) whereas A Freestyle Job running the same project is marked a FAILED (Build Failure in the logs). Not sure if the latter is expected. In both case, surefire is reporting test failures. 
According to the [Jenkins terminology](https://wiki.jenkins-ci.org/display/JENKINS/Terminology), a build is unstable if it was built successfully and one or more publishers report it unstable. To fix this behaviour for a Freestyle project, a workaround is to add the property "maven.test.failure.ignore=true" in the "Invoke top-level Maven target" build step: The project is built successfully and the job marked as UNSTABLE. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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/d/optout.


[JIRA] [junit-plugin] (JENKINS-28479) "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail

2016-01-08 Thread abrid...@blackberry.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Tony Bridges commented on  JENKINS-28479 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail  
 
 
 
 
 
 
 
 
 
 
@Alexander +1. Conceptually, for me, this boils down to whether the job completed, and not whether it passed all tests. I have multiple records of completed runs with failed tests, and I need the trends to determine if we are getting closer to, or farther from, passing. Is the issue that the junit plugin is failing the job, rather than reporting faults ? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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/d/optout.


[JIRA] [junit-plugin] (JENKINS-28479) "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail

2016-01-08 Thread db...@cloudbees.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Daniel Beck commented on  JENKINS-28479 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail  
 
 
 
 
 
 
 
 
 
 
Failing tests should not fail the build. How does that happen? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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/d/optout.


[JIRA] [junit-plugin] (JENKINS-28479) "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail

2016-01-08 Thread abrid...@blackberry.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Tony Bridges commented on  JENKINS-28479 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail  
 
 
 
 
 
 
 
 
 
 
Looks like that might be particular to my job - just scraped the log and found that a test threw a file not found exception, which caused the job to fail. So perhaps that is my specific problem. The job never actually completed, but still showed failed tests. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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/d/optout.


[JIRA] [junit-plugin] (JENKINS-28479) "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail

2016-01-08 Thread jenk...@post2.25u.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Alexander Ost commented on  JENKINS-28479 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail  
 
 
 
 
 
 
 
 
 
 
If there's no successful builds yet, then in all builds at least one test case has failed. 
In those situations, the trend information is especially useful, since it gives a good indication of how many tests still have to be fixed in order to reach a successful build. 
Also the "latest test result" link is useful for projects that never passed all tests yet. Typically, you're interested in test logs no matter whether all tests ever passed or not. 
Both data was available (and appreciated by users : ) before junit-1.2. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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/d/optout.


[JIRA] [junit-plugin] (JENKINS-28479) "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail

2016-01-08 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jesse Glick commented on  JENKINS-28479 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail  
 
 
 
 
 
 
 
 
 
 
Suspect there is nothing to be done here—behaving as designed. If there are no successful builds, there are no test results, and so nothing to display (beyond a big red rectangle). 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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/d/optout.


[JIRA] [junit-plugin] (JENKINS-28479) "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail

2016-01-08 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jesse Glick commented on  JENKINS-28479 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail  
 
 
 
 
 
 
 
 
 
 
I am not sure offhand what the problem is—would need a real diagnosis. The attached patch is certainly incorrect. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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/d/optout.


[JIRA] [junit-plugin] (JENKINS-28479) "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail

2016-01-08 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jesse Glick updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-28479 
 
 
 
  "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail  
 
 
 
 
 
 
 
 
 

Change By:
 
 Jesse Glick 
 
 
 

Labels:
 
 regression 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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/d/optout.


[JIRA] [junit-plugin] (JENKINS-28479) Latest Test Result text and Test Result Trend plot do not appear for projects which always fail

2015-06-14 Thread db...@cloudbees.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Daniel Beck commented on  JENKINS-28479 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: Latest Test Result text and Test Result Trend plot do not appear for projects which always fail  
 
 
 
 
 
 
 
 
 
 
Alexander Ost Please consider submitting the patch as pull request on Gtihub. This is the usual way to suggest specific code changes in Jenkins or plugins. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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/d/optout.


[JIRA] [junit-plugin] (JENKINS-28479) Latest Test Result text and Test Result Trend plot do not appear for projects which always fail

2015-05-21 Thread jenk...@post2.25u.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Alexander Ost updated an issue 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 Jenkins /  JENKINS-28479 
 
 
 
  Latest Test Result text and Test Result Trend plot do not appear for projects which always fail  
 
 
 
 
 
 
 
 
 
 
patch for junit-1.6 that works around the issue 
 
 
 
 
 
 
 
 
 

Change By:
 
 Alexander Ost 
 
 
 

Attachment:
 
 patch.txt 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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/d/optout.


[JIRA] [junit-plugin] (JENKINS-28479) Latest Test Result text and Test Result Trend plot do not appear for projects which always fail

2015-05-21 Thread jenk...@post2.25u.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Alexander Ost commented on  JENKINS-28479 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: Latest Test Result text and Test Result Trend plot do not appear for projects which always fail  
 
 
 
 
 
 
 
 
 
 
The issue is really caused by the SimpleBuildStep migration. The description of the SimpleBuildStep.LastBuildAction interface states 
Marker for explicitly added build actions (as Run.addAction(hudson.model.Action)) which should imply a transient project action (Actionable.getActions()) when present on the Job.getLastSuccessfulBuild(). 
As getProjectActions() was moved from class JUnitResultArchiver to that interface, the project actions will never become active for jobs that do not contain at least one successful build. 
The attached patch.txt (for junit-1.6) moves getProjectActions() back to class JUnitResultArchiver, and this fixes the issue. I am not aware of the side-effects of this change, though. Plugin tests are passing as before, but we're not using all features of the plugin. 
Please, kindly review. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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/d/optout.


[JIRA] [junit-plugin] (JENKINS-28479) Latest Test Result text and Test Result Trend plot do not appear for projects which always fail

2015-05-19 Thread jenk...@post2.25u.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Alexander Ost created an issue 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 Jenkins /  JENKINS-28479 
 
 
 
  Latest Test Result text and Test Result Trend plot do not appear for projects which always fail  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Attachments:
 

 withOutTrend.png, withTrend.png 
 
 
 

Components:
 

 junit-plugin 
 
 
 

Created:
 

 19/May/15 12:56 PM 
 
 
 

Environment:
 

 Jenkins LTS 1.596.2 / Linux 
 
 
 

Priority:
 
  Major 
 
 
 

Reporter:
 
 Alexander Ost 
 
 
 
 
 
 
 
 
 
 
Since junit-1.2, neither the Latest Test Result information nor the Test Result Trend plot appear on the project page if there is not at least one build in non-failed state. 
See screenshots below for an example: after deleting unstable build #11, the abovementioned items disappear.   
The problem did not exist when the plugin was still included in Jenkins (1.576), nor does it exist in versions 1.0 and 1.1 of the plugin. I suspect that this behaviour was introduced with commit 4ba5a49 (