jenkinsci / jenkinsci/junit-plugin

[JENKINS-45940] It is impossible to see test details for a test case named 'testResult'

Open
#1,085 2 comments 0 reactions 0 assignees View on GitHub
component:junit-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
87
Forks
351
Avg merge
1d 19h
Merged PRs (30d)
2

Description

When a test is named 'testResult', it is impossible to see it's details, for example when clicking on it on the 'Test Result' page (e.g. http://localhost:9111/job/reproducer/4/testReport/) you are shown the 'Test Result' page again, with a longer URL ( http://localhost:9111/job/reproducer/4/testReport/com.javacodegeeks.examples.junitmavenexample/CalculatorTest/testResult/ ).

I suppose if the URL ends with 'testResult', jenkins does some redirect.

 

To reproduce, copy the attached junit report xml file to /tmp/, and create and build a new job using the config.xml job configuration.

---
Originally reported by jmarkos, imported from: It is impossible to see test details for a test case named 'testResult'


  • status: Open
  • priority: Minor
  • component(s): junit-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-11-26

Raw content of original issue

When a test is named 'testResult', it is impossible to see it's details, for example when clicking on it on the 'Test Result' page (e.g. http://localhost:9111/job/reproducer/4/testReport/) you are shown the 'Test Result' page again, with a longer URL ( http://localhost:9111/job/reproducer/4/testReport/com.javacodegeeks.examples.junitmavenexample/CalculatorTest/testResult/ ).

I suppose if the URL ends with 'testResult', jenkins does some redirect.

 

To reproduce, copy the attached junit report xml file to /tmp/, and create and build a new job using the config.xml job configuration.

2 attachments

- [TEST-com.javacodegeeks.examples.junitmavenexample.CalculatorTest.xml](https://issues.jenkins.io/secure/attachment/39129/TEST-com.javacodegeeks.examples.junitmavenexample.CalculatorTest.xml)
- [config.xml](https://issues.jenkins.io/secure/attachment/39128/config.xml)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with TEST-com.javacodegeeks.examples.junitmavenexample.CalculatorTest.xml and config.xml, then inspect how the Test Result page handles the path ending in testResult. Confirm that selecting this test opens its details rather than redirecting to the report page, and verify the behavior with the supplied reproduction setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.