Skip to content

Commit ea04ec8

Browse files
wojtekmachJosé Valim
authored andcommitted
Clarify how to configure :test_coverage (#7896)
[ci skip] Signed-off-by: José Valim <[email protected]>
1 parent 0a5d633 commit ea04ec8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/mix/lib/mix/tasks/test.ex

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,13 @@ defmodule Mix.Tasks.Test do
256256
By default, a very simple wrapper around OTP's `cover` is used as a tool,
257257
but it can be overridden as follows:
258258
259-
test_coverage: [tool: CoverModule]
259+
def project() do
260+
[
261+
...
262+
test_coverage: [tool: CoverModule]
263+
...
264+
]
265+
end
260266
261267
`CoverModule` can be any module that exports `start/2`, receiving the
262268
compilation path and the `test_coverage` options as arguments.

0 commit comments

Comments
 (0)