[JIRA] (JENKINS-56755) JUnit test report: Age and failedSince are wrong if test method names are not unique

6 views
Skip to first unread message

l.wolter@his.de (JIRA)

unread,
Mar 26, 2019, 7:54:02 AM3/26/19
to jenkinsc...@googlegroups.com
Lars created an issue
 
Jenkins / Bug JENKINS-56755
JUnit test report: Age and failedSince are wrong if test method names are not unique
Issue Type: Bug Bug
Assignee: Unassigned
Components: junit-plugin
Created: 2019-03-26 11:53
Priority: Major Major
Reporter: Lars

In the JUnit test report the age and failedSince values are sometimes wrong. A newly failed test sometimes gets an age greater than 1 and a failedSince pointing to a build where the test did not fail.

I found out that this always happens to tests whose failed method names are not unique. If there are other failed tests with the same method names in the previous report, the wrong failure seems to be recognized as the predecessor.

In my opinion this could be easily fixed by returning

className + '.' + testName instead of just testName from CaseResult.java#getTransformedTestName

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

stephen.mccants@hcs.us.com (JIRA)

unread,
Jan 7, 2020, 10:35:04 AM1/7/20
to jenkinsc...@googlegroups.com
Stephen McCants commented on Bug JENKINS-56755
 
Re: JUnit test report: Age and failedSince are wrong if test method names are not unique

Seems like a duplicate of JENKINS-30413, which has a test case and purposed fix.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

l.wolter@his.de (JIRA)

unread,
Jan 7, 2020, 10:41:04 AM1/7/20
to jenkinsc...@googlegroups.com

stephen.mccants@hcs.us.com (JIRA)

unread,
Jan 7, 2020, 10:43:02 AM1/7/20
to jenkinsc...@googlegroups.com

Yes, I just pinged that ticket requesting a little attention... I also voted for it since I just hit this problem myself.  Hopefully it can be fixed easily with just a little attention.

Reply all
Reply to author
Forward
0 new messages