Skip to content

Commit 0b05e3b

Browse files
add to news and docs
1 parent ef14046 commit 0b05e3b

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

NEWS.md

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ New language features
1919

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

2328
Compiler/Runtime improvements
2429
-----------------------------

stdlib/Test/docs/src/index.md

+12
Original file line numberDiff line numberDiff line change
@@ -491,3 +491,15 @@ Using `Test.jl`, more complicated tests can be added for packages but this shoul
491491
```@meta
492492
DocTestSetup = nothing
493493
```
494+
495+
### Code Coverage
496+
497+
Code coverage tracking during tests can be enabled using the `pkg> test --coverage` flag (or at a lower level using the
498+
[`--code-coverage`](@ref command-line-interface) julia arg). This is on by default in the
499+
[julia-runtest](https://github.com/julia-actions/julia-runtest) GitHub action.
500+
501+
To evaluate coverage either manually inspect the `.cov` files that are generated beside the source files locally,
502+
or in CI use the [julia-processcoverage](https://github.com/julia-actions/julia-processcoverage) GitHub action.
503+
504+
!!! compat "Julia 1.11"
505+
Since Julia 1.11, coverage is not collected during the package precompilation phase.

0 commit comments

Comments
 (0)