Skip to content
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
15 changes: 13 additions & 2 deletions lib/mix/lib/mix/tasks/test.ex
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,19 @@ defmodule Mix.Tasks.Test do
ignored will emit a warning.

Mix ignores files ending in `_helper.exs` by default, as well as any file
included in the project's `:elixirc_paths`. You may choose to disable all
warnings by ignoring all files with `[fn _ -> true end]`.
included in the project's `:elixirc_paths`.

For example, to ignore all files in a `test/support/` folder:

def project do
[
...,
test_ignore_filters: [&String.starts_with?(&1, "test/support/")]
]
end

You may choose to disable all warnings by ignoring all files with
`[fn _ -> true end]`.

Paths are relative to the project root and separated by `/`, even on Windows.

Expand Down