Mix.Tasks.Test

Run the tests for a project.

This task starts the current application, loads up test/test_helper.exs and then requires all files matching the test/**/_test.exs pattern in parallel.

A list of files can be given after the task name in order to select the files to compile:

mix test test/some/particular/file_test.exs

Command line options

Configuration

Coverage

The :test_coverage configuration accepts the following options:

By default, a very simple wrapper around OTP's cover is used as a tool, but it can be overridden as follows:

test_coverage: [tool: CoverModule]

CoverModule can be any module that exports start/2, receiving the compilation path and the test_coverage options as arguments.

Source

Summary

run(args)

Callback implementation of Mix.Task.run/1

Functions

run(args)

Callback implementation of Mix.Task.run/1.

Source