I already have an EUnit setup that among other things modifies EUnit options, so replacing it with the doctests output from this library is not an option. However, it would be cool if the doctest module provided an EUnit generator function that could dump the test cases generated/discovered into an existing test suite, like so:
-module(my_tests).
-include_lib("eunit/include/eunit.hrl").
doc_test_() -> doctest:eunit_generator(my_module). % or some better name
That way, one can continue using ones existing test setup with minimal modifications.
I already have an EUnit setup that among other things modifies EUnit options, so replacing it with the doctests output from this library is not an option. However, it would be cool if the
doctest
module provided an EUnit generator function that could dump the test cases generated/discovered into an existing test suite, like so:That way, one can continue using ones existing test setup with minimal modifications.