oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.29k stars 2.77k forks source link

Add additional CLI flags to configure `bun test --coverage` #4346

Open jack-weilage opened 1 year ago

jack-weilage commented 1 year ago

What is the problem this feature would solve?

Bun currently has an option to configure coverage thresholds in bunfig.toml, but no way to do so from the command-line (that I can find in the documentation).

What is the feature you are proposing to solve the problem?

Bun could add CLI args similar to c8's CLI.

What alternatives have you considered?

Continue as-is and keep bunfig.toml as a single source of truth for coverage configuration.

jakeboone02 commented 4 months ago

I put up a draft PR #12436 to address this request, but it depends on #12216 being fixed first.