@@ -359,24 +359,20 @@ defmodule Mix.Tasks.Test do
359359
360360 ### Limitations
361361
362- Coverage in Elixir has the following limitations:
363-
364- * Literals, such as atoms, strings, and numbers, are not traced by coverage.
365- For example, if a function simply returns `:ok`, the atom `:ok` itself is
366- never taken into account by coverage;
367-
368- * Macros, such as the ones defined by `defmacro/2` and `defguard/2`, and code
369- invoked only by macros are never considered as covered, unless they are also
370- invoked during the tests themselves. That's because macros are invoked at
371- compilation time, before the test coverage instrumentation begins;
362+ Elixir uses Erlang's [`:cover`](`:cover`) for its default test coverage.
363+ Erlang coverage is done by tracking *executable lines of code*. See
364+ `mix test.coverage` for details.
372365
373366 ### Configuration
374367
375- The `:test_coverage` configures the coverage tool and accepts the following options:
376-
377- * `:output` - the output directory for cover results. Defaults to `"cover"`.
368+ The `:test_coverage` configures the coverage tool and the default tool
369+ accepts the following options:
378370
379371 * `:tool` - a module specifying the coverage tool to use.
372+ Defaults to `Mix.Tasks.Test.Coverage`.
373+
374+ * `:output` - the output directory for cover results.
375+ Defaults to `"cover"`.
380376
381377 * `:summary` - at the end of each coverage run, a summary of each
382378 module is printed, with results in red or green depending on whether
@@ -399,9 +395,9 @@ defmodule Mix.Tasks.Test do
399395 * `:local_only` - by default coverage only tracks local calls,
400396 set this option to false if you plan to run coverage across nodes.
401397
402- By default, a wrapper around OTP's `cover` is used as the default coverage
403- tool. You can learn more about how it works in the docs for
404- `mix test.coverage`. Your tool of choice can be given as follows:
398+ By default, a wrapper around OTP's `cover` is used as the coverage tool.
399+ You can learn more about how it works in the docs for `mix test.coverage`.
400+ Your tool of choice can be given as follows:
405401
406402 def project() do
407403 [
0 commit comments