Module

mix test

Changes by version

Elixir 1.19.0

· 3 changes

Enhancement Tool: Mix

Add --name-pattern option to mix test

Enhancement Tool: Mix

Allow to distinguish the exit status between warnings as errors and test failures

Bugfix Tool: Mix

Ensure modules are preloaded in mix test --slowest-modules=N

Elixir 1.18.0

· 2 changes

Enhancement Tool: Mix

Taint failure manifest if requiring or compiling tests fail

Hard Deprecation Tool: Mix

:warnings_as_errors configuration in :test_elixirc_options is deprecated. Instead pass the --warnings-as-errors flag to mix test. Alternatively, you might alias the task: aliases: [test: "test --warnings-as-errors"]

Elixir 1.17.0

· 4 changes

Enhancement Tool: Mix

Add mix test --breakpoints that sets up a breakpoint before each test that will run

Enhancement Tool: Mix

Add mix test --repeat-until-failure to rerun tests until a failure occurs

Enhancement Tool: Mix

Add mix test --slowest-modules to print slowest modules based on all of the tests they hold

Enhancement Tool: Mix

Generate cover HTML files in parallel

Elixir 1.16.1

· 2 changes

Bugfix Tool: Mix

Properly resolve relative paths when running tests from individual files

Bugfix Tool: Mix

Properly resolve Windows paths when running tests from individual files

Elixir 1.16.0

· 1 change

Enhancement Tool: Mix

Allow testing multiple file:line at once, such as mix test test/foo_test.exs:13 test/bar_test.exs:27

Elixir 1.14.2

· 1 change

Bugfix Tool: Mix

Ensure proper error message when there is no test directory

Elixir 1.14.1

· 1 change

Enhancement Tool: Mix

Accept --all-warnings option

Elixir 1.14.0

· 2 changes

Enhancement Tool: Mix

Improve error message when suite fails due to coverage

Enhancement Tool: Mix

Support :test_elixirc_options and default to not generating docs nor debug info chunk for tests

Elixir 1.13.3

· 1 change

Bugfix Tool: Mix

Fix total coverage always showing in red even when above the threshold

Elixir 1.13.2

· 1 change

Enhancement Tool: Mix

Print a message when the suite fails due to the coverage threshold

Elixir 1.13.0

· 7 changes

Enhancement Tool: Mix

Support --profile-require=time to profile the time loading test files themselves

Enhancement Tool: Mix

Allow filtering modules from coverage using regex

Enhancement Tool: Mix

Allow the exit status of ExUnit to be configured and set the default to 2

Enhancement Tool: Mix

Exit with a status of 3 when coverage falls below threshold

Enhancement Tool: Mix

Write failed manifest when suite fails due to --warnings-as-errors

Enhancement Tool: Mix

Ignore MIX_TEST_PARTITION when partitions set to 1

Bugfix Tool: Mix

Fix coverage engine to also tag case, cond, and receive branches where the right side is a literal

Elixir 1.12.1

· 1 change

Bugfix Tool: Mix

Do not run the whole suite when there are no --failed tests as it won't behave as expected inside umbrellas

Elixir 1.12.0

· 2 changes

Enhancement Tool: Mix

Run all available tests if there are no pending --failed tests. This provides a better workflow as you no longer need to toggle the --failed flag between runs

Bugfix Tool: Mix

Ensure protocols within the current project are consolidated when --cover is given

Elixir 1.11.0

· 2 changes

Enhancement Tool: Mix

Allow :ignore_modules inside :test_coverage option

Bugfix Tool: Mix

Compare to test coverage threshold inclusively

Elixir 1.10.0

· 1 change

Enhancement Tool: Mix

Add support for simple round-robin test partitioning across multiple machines

Elixir 1.9.0

· 2 changes

Enhancement Tool: Mix

Allow running tests for a given umbrella app from the umbrella root with mix test apps/APP/test. Test failures also include the apps/APP prefix in the test location

Bugfix Tool: Mix

Do not consider modules that are no longer cover compiled when computing coverage report, which could lead to flawed reports

Elixir 1.8.0

· 2 changes

Enhancement Tool: Mix

Allow setting the maximum number of failures via --max-failures

Enhancement Tool: Mix

Print a message instead of raising on unmatched tests inside umbrella projects

Elixir 1.7.4

· 1 change

Bugfix Tool: Mix

Ensure that --cover displays correct coverage in an umbrella app

Elixir 1.7.2

· 1 change

Bugfix Tool: Mix

Do not fail suite if there are no test files

Elixir 1.7.0

· 2 changes

Enhancement Tool: Mix

Add --failed option that only runs previously failed tests

Enhancement Tool: Mix

Print coverage summary by default when the --cover flag is given

Elixir 1.6.0

· 3 changes

Enhancement Tool: Mix

Run all functions in a describe block by giving the file:line the describe block starts

Enhancement Tool: Mix

Report the top N slowest tests with the --slowest N flag

Enhancement Tool: Mix

Report the number of doctests and tests separately

Elixir 1.5.2

· 1 change

Bugfix Tool: Mix

Do not trigger additional error reports when there is a failure when loading test files

Elixir 1.4.0

· 1 change

Enhancement Tool: Mix

Add --formatter option to mix test