Skip to content

Update docs for mix test --slowest and --slowest-modules #13862

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions lib/mix/lib/mix/tasks/test.ex
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,12 @@ defmodule Mix.Tasks.Test do
`--seed 0` disables randomization so the tests in a single file will always be ran
in the same order they were defined in

* `--slowest` - prints timing information for the N slowest tests.
Automatically sets `--trace` and `--preload-modules`
* `--slowest` - prints timing information for the N slowest tests. Includes time spent in
`ExUnit.Callbacks.setup/1`. Automatically sets `--trace` and `--preload-modules`

* `--slowest-modules` *(since v1.17.0)* - prints timing information for the N slowest
modules. Automatically sets `--trace` and `--preload-modules`
modules. Includes time spent in `ExUnit.Callbacks.setup/1`. Automatically sets
`--trace` and `--preload-modules`

* `--stale` - runs only tests which reference modules that changed since the
last time tests were ran with `--stale`. You can read more about this option
Expand Down