[xharness] Cap test output into the html report. - #26480
Conversation
Some asserts an output a lot of text, but we don't need all of that in the html report, so cap it.
There was a problem hiding this comment.
Pull request overview
This PR reduces HTML report size by truncating very large failed-test messages when rendering structured test results, preventing excessively verbose asserts from bloating the generated HTML output.
Changes:
- Truncate (
Cap)failedTest.Messageto 1024 characters before HTML-encoding it in the structured test report output.
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
🚀 [CI Build #8eae175] Test results 🚀Test results✅ All tests passed on VSTS: test results. 🎉 All 205 tests passed 🎉 Tests counts✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
Some asserts an output a lot of text, but we don't need all of that in the html report, so cap it.