ExUnit pending tests

Today I mapped out a module with a bunch of tests with no function bodies.
Each of those is shown as “Not yet implemented” but the test suite fails.
Would it be possible to have those reported as a pending status that doesn’t result in the whole suite failing?
I’d be happy to work on a pull request if there is agreement.

1 Like

You can tag your pending test with @tag :skip

3 Likes

As well as mix test --exclude not_implemented.

6 Likes

Thank you

Reference for use of Tags in ExUnit :

:skip - skips the test with the given reason

…which can be used as:

@tag skip: "this test is incomplete - decide on final biz logic and assert"
test "do the needful" do
  # assertions
end
4 Likes