cucumber-js icon indicating copy to clipboard operation
cucumber-js copied to clipboard

feat(formatters): junit formatter template methods for creating elements

Open kevinlacotaco opened this issue 1 year ago • 1 comments

🤔 What's changed?

Creates functions that can be overridden within the junit formatter to help create elements within the XML with more flexibility. Uses the object creation of the xmlbuilder to not allow complete control of root elements among others.

Conversion from object are discussed: https://github.com/oozcitak/xmlbuilder-js/wiki/Conversion-From-Object

⚡️ What's your motivation?

Fixes #2348

🏷️ What kind of change is this?

  • :zap: New feature (non-breaking change which adds new behaviour)

♻️ Anything particular you want feedback on?

📋 Checklist:

  • [x] I agree to respect and uphold the Cucumber Community Code of Conduct
  • [ ] I've changed the behaviour of the code
    • [ ] I have added/updated tests to cover my changes.
  • [ ] My change requires a change to the documentation.
    • [ ] I have updated the documentation accordingly.
  • [ ] Users should know about my change
    • [ ] I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

This text was originally generated from a template, then edited by hand. You can modify the template here.

kevinlacotaco avatar Nov 08 '23 22:11 kevinlacotaco

Coverage Status

coverage: 97.836% (+0.003%) from 97.833% when pulling 44af7a55a3a0ab37c250a80dbde3ab61a3867ee5 on kevinlacotaco:feat/junit-specific-nodes into 6eede88fe6e6aed83a1ac581740d179e09643e3b on cucumber:main.

coveralls avatar Nov 08 '23 22:11 coveralls