jenkinsci / junit-realtime-test-reporter-plugin

Report JUnit test results in real time
https://plugins.jenkins.io/junit-realtime-test-reporter/
MIT License
6 stars 13 forks source link

Does not work with custom path provided for TEST xml #162

Open coolchess123 opened 3 months ago

coolchess123 commented 3 months ago

Jenkins and plugins versions report

Environment ```text Paste the output here ```

What Operating System are you using (both controller, and any agents involved in the problem)?

Linux

Reproduction steps

I use the jenkins node as a driver node, I run the actual mvn tests on another box, but i periodically copy the xmls to the jenkins node

But I copy it under a directory ${WORKSPACE}/${BUILD_NUMBER}/target/surefire-reports/*.xml

In publish junit test report I provide a path like

${BUILD_NUMBER}/target/surefire-reports/*.xml

And it is able to show the results, but the real time reporting does not work

However If i copy to target/surefire-reports/*.xml under the workspace and change the junit test report */target/surefire-reports/.xml it works

I was wondering if its possible to support the ${WORKSPACE}/${BUILD_NUMBER}/target/surefire-reports/*.xml

Expected Results

It should pick up the results from any path

Actual Results

It does not

Anything else?

No response

Are you interested in contributing a fix?

No response

coolchess123 commented 3 months ago

For e.g. at end of run it shows

image

But during the run the realtime does not show anything

I can contribute to developing a fix, if steps are provided on how to fix it