cucumber / cucumber-js

Cucumber for JavaScript
https://cucumber.io
MIT License
5.02k stars 1.09k forks source link

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

Open kevinlacotaco opened 9 months ago

kevinlacotaco commented 9 months ago

πŸ€” 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?

♻️ Anything particular you want feedback on?

πŸ“‹ Checklist:


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

coveralls commented 9 months ago

Coverage Status

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