Bun's test runner now supports built-in code coverage reporting. This makes it easy to see how much of the codebase is covered by tests, and find areas that ... |
The coverage report lists the source files that were executed during the test run, the percentage of functions and lines that were executed, and the line ranges ... |
To set a minimum coverage threshold, add the following line to your bunfig.toml . This requires that 90% of your codebase is covered by tests. |
13 нояб. 2023 г. · bun test --coverage reports coverage percentages for functions and lines like Jest/Vitest/etc, but those also report coverage for statements and branches. |
7 июл. 2024 г. · Hint Towards the Solution. Bun has a native coverage tool on its native test runner. So let's re-route couple of things in our favor. |
1 июн. 2023 г. · What is the problem this feature would solve? Existing test libraries like Jest and Vitest support coverage reporters like istanbul and c8. |
The test runner will recursively search for all files in the directory that match the following patterns and execute the tests they contain. |
Bun ships with a fast, built-in, Jest-compatible test runner. Tests are executed with the Bun runtime, and support the following features. |
19 сент. 2023 г. · When running tests with coverage bun test --coverage I get a nice report for all the files that were included by the tests. BUT the files that aren't included ... |
A collection of guides for writing, running, and configuring tests in Bun. |
Novbeti > |
Axtarisha Qayit Anarim.Az Anarim.Az Sayt Rehberliyi ile Elaqe Saytdan Istifade Qaydalari Anarim.Az 2004-2023 |