Skip to content

Commit

Permalink
Improve instructions for getting coverage with Pkg.test (#248)
Browse files Browse the repository at this point in the history
* Improve instructions

* Update README.md
  • Loading branch information
DilumAluthge authored Oct 29, 2019
1 parent 17fc6eb commit 5a107c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ julia --code-coverage=user
julia --code-coverage=tracefile-%p.info --code-coverage=user # available in Julia v1.1+
```

*Step 2:* Run your tests (e.g., `include("runtests.jl")`) and quit Julia.
*Step 2:* Run your tests (e.g., `include("runtests.jl")`) and quit Julia. (If you use `Pkg.test` to run your tests, set the `coverage` keyword argument to `true`, i.e. `Pkg.test("MyPkg"; coverage=true)`.)

*Step 3:* Navigate to the top-level directory of your package, restart Julia (with no special flags) and analyze your code coverage:

Expand Down

0 comments on commit 5a107c6

Please sign in to comment.