Try defining a module with the doctest in the test and then a test case with ExUnit.Case and watch it fail. :)