-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
Only 65535 characters are allowed #142
Comments
That's a lot of tests! The Unity Test Runner actions uses the test results to generate markup and display it using the GitHub Checks API. The easiest workaround would be to remove - uses: MirrorNG/nunit-reporter@v1.0.11
if: always()
with:
path: ${{ steps.test.outputs.artifactsPath }}/*.xml
access-token: ${{ secrets.GITHUB_TOKEN }} Alternatively, maybe there's a way to split the results into smaller pieces, so that multiple smaller calls could be made to the Checks API? |
I already have the store artifacts step after the test run. I'm actually not too concerned about the UI for the tests, I just want it to report success/fail, then I can manually inspect the test results artifact if needed. Is there a configuration option for that? [Edit] I just realize that's exactly what removing the github token does facepalm. But yeah, it would be nice to be able to have the UI work for a large number of tests. |
Would it be possible to parse the results and only upload the failed tests? Typically those are the only ones I care about, and failures should typically be very few to not go past that limit. |
I think most people like seeing the green checkmarks for each passing test. |
I'd love to, but I'm not too familiar with js or github actions, so I wouldn't know where to start. I also don't have that much time right now, but maybe I could dig into it in a few weeks or so if no-one else does by then. |
I actually found https://github.com/marketplace/actions/test-reporter to solve this issue. It doesn't natively support the XML results that Unity outputs yet, but that's apparently in the works, and a workaround was posted by a user. So I will close this. |
Should this bug/feature request be reopened? I suspect that supporting test suites with more tests / more testoutput would be a good feature for many people! The workaround using test-reporter That workaround does work if setting |
Sure! |
I created an enhancement request with what I think may be the best solution to this issue: #169 |
Changing the
Though, like someone else mentioned, it does lack the stack traces, but I can get that from the artifacts when I need it. |
I like the idea of having different options to display the test results, so maybe we could even make a new compound action does the NUnit to JUnit transformation and then uses |
It would be better if Or if unity's test runner could offer extra test result format options, but that's outside the purview of this project (though someone did ask about it on the forums https://forum.unity.com/threads/unity-test-framework-2-0-ready-for-feedback.1230126/#post-7884664). |
For me, skipped/inconclusive tests were simply counted as passed. As a very ugly hacky workaround, I added the following to my yml right after the
edit: sorry if this is out of scope for this discussion! |
Instead of dorny/test-reporter using EnricoMi/publish-unit-test-result-action worked better for me. Usage is very similar. |
It looks like that only officially supports JUnit XML, not NUnit XML. Do you have to convert it? |
Yes, you also have to convert it. I used your code above. https://github.com/ReactUnity/core/blob/main/.github/workflows/test.yml#L108 |
Hm, looks like EnricoMi/publish-unit-test-result-action added NUnit XML support back in June. I'll have to try it out. It may be worth integrating that. [Edit] Looks like it only works on Linux, not Windows. |
@timcassell thanks for the info. I could remove some boilerplate from my workflow file. |
Tests pass, but the github action fails due to too many character (I'm not sure what exactly is attempting to be done).
I suspect this is due to me running over 1700 tests. Is there some way for me to get the action to pass properly?
Last lines of test run:
[Edit] Forgot to include my yaml:
The text was updated successfully, but these errors were encountered: