Leonardo Gallardo
Leonardo Gallardo

Reputation: 45

ExUnit how filter tests with two tags?

I'm running some tests using Elixir and ExUnit and I would like to pass a filter on the command line that I can select tests that have one tag but not the other.

Example:

I'd like to run just the test B with tag @foo, but not the A one with @foo and @bar, how do I achieve this?

Upvotes: 1

Views: 809

Answers (1)

Aleksei Matiushkin
Aleksei Matiushkin

Reputation: 121010

mix test task accepts any number of file names, as well as --include and --exclude configs.

More info about tags and filters might be found in the documentation.

Upvotes: 2

Related Questions