From 1ccc13ecf79861eb0b5a697c0b5571772d42a28d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Kalemba?= Date: Wed, 5 Feb 2025 08:56:12 +0100 Subject: [PATCH] docs(bunfig): update test runner options (#17040) --- docs/runtime/bunfig.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/runtime/bunfig.md b/docs/runtime/bunfig.md index 36dfa750439307..01c2843f361ee1 100644 --- a/docs/runtime/bunfig.md +++ b/docs/runtime/bunfig.md @@ -180,6 +180,25 @@ Whether to skip test files when computing coverage statistics. Default `false`. coverageSkipTestFiles = false ``` +### `test.coverageReporter` + +By default, coverage reports will be printed to the console. For persistent code coverage reports in CI environments and for other tools use `lcov`. + +```toml +[test] +coverageReporter = ["text", "lcov"] # default ["text"] +``` + +### `test.coverageDir` + +Set path where coverage reports will be saved. Please notice, that it works only for persistent `coverageReporter` like `lcov`. + +```toml +[test] +coverageDir = "path/to/somewhere" # default "coverage" +``` + + ## Package manager Package management is a complex issue; to support a range of use cases, the behavior of `bun install` can be configured under the `[install]` section.