Skip to content

Commit

Permalink
add to news and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Nov 14, 2023
1 parent ae198d7 commit 956cd59
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ New language features

Language changes
----------------
* Code coverage and malloc tracking is no longer generated during the package precompilation stage.
Further, during these modes pkgimage caches are now used for packages that are not being tracked.
Meaning that coverage testing (the default for `julia-actions/julia-runtest`) will by default use
pkgimage caches for all other packages than the package being tested, likely meaning faster test
execution. ([#52123])

Compiler/Runtime improvements
-----------------------------
Expand Down
12 changes: 12 additions & 0 deletions stdlib/Test/docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -491,3 +491,15 @@ Using `Test.jl`, more complicated tests can be added for packages but this shoul
```@meta
DocTestSetup = nothing
```

### Code Coverage

Code coverage tracking during tests can be enabled using the `pkg> test --coverage` flag (or at a lower level using the
[`--code-coverage`](@ref command-line-interface) julia arg). This is on by default in the
[julia-runtest](https://github.com/julia-actions/julia-runtest) GitHub action.

To evaluate coverage either manually inspect the `.cov` files that are generated beside the source files locally,
or in CI use the [julia-processcoverage](https://github.com/julia-actions/julia-processcoverage) GitHub action.

!!! compat "Julia 1.11"
Since Julia 1.11, coverage is not collected during the package precompilation phase.

0 comments on commit 956cd59

Please sign in to comment.