-
Notifications
You must be signed in to change notification settings - Fork 11
Add JUnit issue provider #1169
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
base: develop
Are you sure you want to change the base?
Add JUnit issue provider #1169
Conversation
…lementation Co-authored-by: pascalberger <[email protected]>
Co-authored-by: pascalberger <[email protected]>
…documentation Co-authored-by: pascalberger <[email protected]>
b38677c
to
9044e01
Compare
9044e01
to
268c5ee
Compare
@copilot Your environment has been updated that you can build locally and run the build script to ensure CI builds are working and you can find detailed contribution instructions in copilot-instructions.md. Resolve the existing conflict with the develop branch, where solution file has been updated to slnx format and ensure build script runs successfully. |
Resolved the conflict with develop branch (SLNX migration) and fixed all compilation errors. The JUnit provider now builds successfully with proper solution integration and NuGet specification files. The tests are running but need some adjustments to match actual XML parsing output. Commit: f1252f7 |
@copilot Fix unit tests and integration tests. See copilot-instructions.md how you can run them. Add documentation in the |
Co-authored-by: pascalberger <[email protected]>
Fixed all unit tests and compilation issues. All 36 tests now pass and the build completes without warnings. Also added comprehensive documentation in the docs folder following the same pattern as other issue providers. The main fixes included:
Commit: b642361 |
@copilot Add integration tests for the new issue provider for Cake scripting and Cake Frosting and add it to GitHub Actions workflow and Azure Pipelines. Also update CIStatus.md file in the repository root directory. |
@copilot There are build warnings which need to be fixed |
Fixed all build warnings in the JUnit provider code. The issues were:
All warnings are now fixed and the solution builds with 0 warnings. All 36 unit tests continue to pass. Commit: d481c08 |
d481c08
to
a578b84
Compare
Co-authored-by: pascalberger <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are build warnings which need to be fixed
…directives Co-authored-by: pascalberger <[email protected]>
Fixed all build warnings by removing duplicate blank lines (SA1507) and unnecessary using directives (IDE0005). All 122 unit tests and integration tests continue to pass successfully. Commit: 56b5133 |
This PR implements a new JUnit issue provider that enables Cake.Issues to read issues from any tool that outputs JUnit XML format. The provider uses a multi-format architecture to handle different JUnit XML variations effectively.
Architecture
The provider follows the
BaseMultiFormatIssueProvider
pattern used by other providers in the codebase:Supported Tools
The provider works with any tool that outputs JUnit XML, with optimized support for:
Key Features
Robust XML Parsing:
<testsuite>
and<testsuites>
root elementsSmart Issue Extraction:
file:line:column
,file(line,column)
,file line number
Format-Specific Optimizations:
Usage Examples
Testing & Documentation
The multi-format approach ensures optimal parsing for specific tools while maintaining compatibility with any JUnit XML output, making this provider highly versatile for diverse CI/CD scenarios.
Fixes #938 and resolves #426 (markdownlint-cli2 support).
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.