Closed edwintorok closed 8 years ago
That looks pretty nice! I don't use OUnit2, but I understand the point. Could you please add a test file for this new function (e.g. copy and adapt tests/Runner_ounit_test.ml
)?
Pushed the example, also added a convenience function for converting a list of tests to ounit2
Thanks!
To take advantage of OUnit2 features (parallel execution, html logging, etc.) tests need to be of type OUnit2.test.
to_ounit2_test:
This is more complicated due to seed handling: OUnit2 only prints the exception / failure message by default (the other messages are logged), using an auto-generated random seed would be inconvenient: