New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Action seems to ignore the content of the trx file #344
Comments
Can you please provide the TRX file so I can debug why the action cannot process it properly? |
Strem.UnitTests.Test.Results.zip I have generated this locally but this should be what the end build uses, thanks for the quick response. |
That file works fine, are you sure the file is identical to the one on GitHub actions? |
It should be, it uses a cake build script so uses exactly the same logic to run the build on both local system and git hub actions, is there an easy way to get the file out of github action or do I need to publish it as an artifact? |
Yes, the file needs to be uploaded as an artifact. |
app.zip |
That is puzzling, the file works just fine, it adds 44 passing tests: #345 (comment) |
Yeah, I use the same approach on another project on Azure Devops and that processes them fine, but for some reason it doesnt work here. Here is the build I got that artifact from (I removed the app part manually as its 40mb): https://github.com/strem-app/strem/runs/7845897268?check_suite_focus=true As you can see its saying nothing has passed etc. |
At least I can reproduce in a fork: https://github.com/EnricoMi/strem/actions/runs/2863736835/attempts/1#summary-7846828832 |
I have found the issue, it is in: with:
xunit_files: "dist/*.trx" It should read: with:
trx_files: "dist/*.trx" 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:
|
It was a bit confusing because currently the front page shows these unique file name props like "trx_files" etc but the rest of the docs just says "files" so I wasnt entirely sure it was right in the first place. Thanks for looking into it for me though! |
Thanks for reporting. |
I am getting blank test results even though the tests results exist and the action seems to find them, so am I doing something wrong?
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
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
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.
The text was updated successfully, but these errors were encountered: