[JIRA] [junit-plugin] (JENKINS-30413) Failed test age is incorrect if same test name exist in different package

6 views
Skip to first unread message

blatinville44@gmail.com (JIRA)

unread,
Sep 11, 2015, 10:02:02 AM9/11/15
to jenkinsc...@googlegroups.com
Bertrand Latinville created an issue
 
Jenkins / Bug JENKINS-30413
Failed test age is incorrect if same test name exist in different package
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: config.xml, junit_age1.png, Regression_at_each_run.png
Components: junit-plugin
Created: 11/Sep/15 2:01 PM
Environment: Jenkins-1.609.3
Junit-plugin 1.9
gtest to run test & produce xml results
Priority: Major Major
Reporter: Bertrand Latinville

If a test case name is present in several packages, and a test is failed in one of the packages, the age of the failure always will be '1'.

Moreover the ext email plugin will send a mail at every run if the regression trigger is configured.

See this simple example of test results:

<testsuites name="AllTests"><testsuite name="foo"><testcase name="ThisTestNameIsDuplicated" classname="package2.test"><failure message="FAILED"/></testcase></testsuite></testsuites>

<testsuites name="AllTests2"><testsuite name="foo"><testcase name="ThisTestNameIsDuplicated" classname="package1.test"/></testsuite></testsuites>

These two test cases :

  • package1.test.ThisTestNameIsDuplicated
  • package2.test.ThisTestNameIsDuplicated
    are displayed properly in Jenkins,
    but the age of failure of package2.test.ThisTestNameIsDuplicated will always be 1
    after several run of the "tests".

It seems that the classname is not taken into account when computing the age.

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

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

unread,
Jan 7, 2020, 10:38:03 AM1/7/20
to jenkinsc...@googlegroups.com
Stephen McCants updated an issue
Change By: Stephen McCants
Environment: Jenkins-1.609.3 & 2.198
Junit-plugin 1.9
& 1.28
gtest to run test & produce xml results
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

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

unread,
Jan 7, 2020, 10:40:02 AM1/7/20
to jenkinsc...@googlegroups.com
Stephen McCants commented on Bug JENKINS-30413
 
Re: Failed test age is incorrect if same test name exist in different package

I'm seeing this problem on Jenkins 2.198 with JUnit plugin 1.28.  Since there is a test case demonstrating the problem and a purposed fix (along with 6 votes) could this ticket get a little attention to fix the problem?  Thanks.

 

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

unread,
Jan 7, 2020, 10:45:04 AM1/7/20
to jenkinsc...@googlegroups.com
Stephen McCants edited a comment on Bug JENKINS-30413
I'm seeing this problem on Jenkins 2.198 with JUnit plugin 1.28.  Since there is a test case demonstrating the problem and a purposed proposed fix (along with 6 votes) could this ticket get a little attention to fix the problem?  Thanks.

 
Reply all
Reply to author
Forward
0 new messages