[TRUNK-17577] Recommend cypress-junit-plugin for file path support#435
Open
samgutentag wants to merge 2 commits intomainfrom
Open
[TRUNK-17577] Recommend cypress-junit-plugin for file path support#435samgutentag wants to merge 2 commits intomainfrom
samgutentag wants to merge 2 commits intomainfrom
Conversation
Updates the Cypress framework guide to recommend the Sauce Labs cypress-junit-plugin as the primary JUnit reporter, since Cypress's built-in Mocha reporter produces XML that prevents Trunk from associating file paths and Code Owners with test cases. The built-in reporter is preserved as an alternative with a clear tradeoff note. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds a details/summary block explaining why the built-in Mocha reporter causes the "missing file or filepath" warning, with an annotated XML example showing the sibling vs. hierarchical structure issue. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@saucelabs/cypress-junit-pluginas the primary JUnit reporter for proper file path attributionfileattribute lives on a sibling<testsuite>rather than a parent, preventing Trunk from associating file paths and Code Owners with test casesContext
Customer (Gusto) discovered that Cypress's built-in Mocha JUnit reporter doesn't include file paths on
<testcase>elements. Dylan Frankland (Trunk) confirmed the hierarchical attribute inheritance requirement and approved recommending the Sauce Labs plugin as a nudge, not a requirement.Test plan
<details>collapsible block renders correctly in GitBook@saucelabs/cypress-junit-plugin)Related
Generated with Claude Code