I want to separate out Integration tests from Unit Tests in Elixir. I found the Elixir mix documentation has a section on filters, and describes just what I want to do.
Then add the lines below into appdir/test/test_helper.exs
# Exclude all external tests from running
ExUnit.configure exclude: [external: true]
Then how does one tag tests as "external"?
You just add @tag external: true
(or the shortcut @tag :external
) before the test definition (you can also use @moduletag
to tag a whole test case).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With