Action seems to ignore the content of the trx file
See original GitHub issueI am getting blank test results even though the tests results exist and the action seems to find them, so am I doing something wrong?
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
xunit_files: "dist/*.trx"
The test output section has run the tests and output the trx
file to the dist folder:
https://github.com/strem-app/strem/runs/7840354498?check_suite_focus=true#step:6:809
Results File: /home/runner/work/strem/strem/dist/Strem.UnitTests.Test.Results.trx Passed! - Failed: 0, Passed: 44, Skipped: 0, Total: 44, Duration: 146 ms - /home/runner/work/strem/strem/src/Strem.UnitTests/bin/Debug/net6.0/Strem.UnitTests.dll (net6.0)
However when the unit test publish action is run it finds the file from what I can tell but generates an empty output: https://github.com/strem-app/strem/runs/7840354498?check_suite_focus=true#step:7:23
2022-08-15 15:00:13 +0000 - publish - INFO - Reading dist/*.trx (1 file, 65.0 KiB) 2022-08-15 15:00:13 +0000 - publish - INFO - Finished reading 1 files in 0.00 seconds
Any help would be great as I don’t really know how to debug further as file is there, its found the file, it says its processing it, so a bit baffled.
Issue Analytics
- State:
- Created a year ago
- Comments:12 (7 by maintainers)
Top GitHub Comments
I have found the issue, it is in:
It should read:
https://github.com/EnricoMi/strem/actions/runs/2866802522/attempts/1#summary-7854780069
I have improved the logging so it is easier to spot this kind of issue:
Thanks for reporting.