cucumber / cucumber-js

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

better formats config #2318

Closed davidjgoss closed 11 months ago

davidjgoss commented 11 months ago

πŸ€” What's changed?

Expressing formats like "html:./report.html" is painful to read and write, and difficult for us to process. It gets worse when you want to include things that have colons, like URLs and Windows absolute file paths, some of which we struggle to support smartly. It's unavoidable on the CLI but in a configuration file we can make it easier.

This PR adds support for a two-item array notation for format items, so for the above example you could instead do ["html", "./report.html"].

🏷️ What kind of change is this?

πŸ“‹ Checklist:


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