Skip to content

Commit

Permalink
docs(bunfig): update test runner options (#17040)
Browse files Browse the repository at this point in the history
  • Loading branch information
sculpt0r authored Feb 5, 2025
1 parent 4d004b9 commit 1ccc13e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/runtime/bunfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1ccc13e

Please sign in to comment.