How to configure ExUnit to make empty tests fail?

When starting a new task, I usually write a test before anything else:

test "the new feature works" do
  flunk "write this test"
end

I have to add this line:

  flunk "write this test"

because an empty test passes quietly.

I am extremely lazy. I would like to configure ExUnit to make empty tests fail.

Can one configure ExUnit so the following test fails?

test "the new feature works" do
end

Remove the do/end as well should make it fail for not being implemented.

5 Likes

Perfect. Thank you very much :slight_smile:

test "the new feature works"

fails noisily. Perfect.