Add test for @attribute in wrapper-object array form#53
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughA new YAML test fixture ( ChangesWrapper-form plugin config attribute test
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Pull request overview
Adds regression coverage for @attribute handling when plugin configuration YAML uses the wrapper-object array form (e.g., - transformer: { "@implementation": ... }), ensuring buildXmlNode correctly emits XML attributes in that path as well.
Changes:
- Added a new YAML fixture that uses the wrapper-object array form for shade plugin
transformers. - Added a new JUnit test that parses the fixture and asserts the expected
XmlNodestructure (including theimplementationattribute).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
extension/src/test/resources/yaml/build-plugin-config-attributes-wrapper.yaml |
New YAML fixture exercising wrapper-object array form for @implementation attribute mapping. |
extension/src/test/java/eu/maveniverse/maven/mason/YamlParserTest.java |
New test testBuildPluginConfigAttributesWrapper asserting correct parsing/output for wrapper-object form. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Claude Code on behalf of Guillaume Nodet
Summary
@attributehandling inbuildXmlNodeTest plan
testBuildPluginConfigAttributesWrappertest passesSummary by CodeRabbit