jobjo / popper

Property-based testing at ease
ISC License
43 stars 1 forks source link

Transform the Popper.test to Alcotest.test #53

Open vch9 opened 3 years ago

vch9 commented 3 years ago

I believe it could be a good thing for Popper to transform an Popper.test to Alcotest.test.

From what your runner looks like they're both similar, but in a large-scale project it can be good to reduce the number of test runners.

QCheck does it here, and we do use that function for uniformity of tests in Tezos.

I also understand that your library intends to be a unit test and property based test library. Reducing the need to use Alcotest in a test suite at all.

Edit: this could be a discussion instead of a issue actually

jobjo commented 3 years ago

Hi, I agree that would be nice and I will take a look.

I also understand that your library intends to be a unit test and property based test library. Reducing the need to use Alcotest in a test suite at all.

Yes, the reason I went down this path is because I wanted more control of the output and also support some features not available in Alcotest, such as recording and displaying timing information, logging sampled values and nesting test suites.

I would also like to open up this API so that it's possible to lift, say CCheck tests to Popper.