Skip to content
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

When unit test contains a crash, xcresulttool report generation will error #739

Open
amleszk opened this issue Aug 15, 2023 · 0 comments
Open

Comments

@amleszk
Copy link

amleszk commented Aug 15, 2023

Hello thank you for creating this useful tool.

We observed an error generating reports when crash has occurred in one of the unit tests. It might be due to the crash log message containing a stack trace, not being filtered in the report. And causing the text size to be bloated.

Steps to reproduce

  • Add fatalError("Crash") into a XCTestCase
  • Run Action [xcresulttool](https://github.com/kishikawakatsumi/xcresulttool)
  • Tool fails with large report issues and other errors
Warning: The 'summary' will be truncated because the character limit (65535) exceeded.
Error: Invalid request.

For 'properties/message', {"_value"=>{}} is not a string.
For 'properties/message', {"_value"=>{}} is not a string.
For 'properties/message', {"_value"=>{}} is not a string.
For 'properties/message', {"_value"=>{}} is not a string.
For 'properties/message', {"_value"=>{}} is not a string.
Error: $GITHUB_STEP_SUMMARY upload aborted, supports content up to a size of 1024k, got 1841k. For more information see: https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-markdown-summary
@amleszk amleszk changed the title Test crashing causes report generation to fail Test with a crash, causes xcresulttool step report generation to fail Aug 15, 2023
@amleszk amleszk changed the title Test with a crash, causes xcresulttool step report generation to fail When unit test contains a crash, xcresulttool report generation will error Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant