disneystreaming / weaver-test

A test framework that runs everything in parallel.
https://disneystreaming.github.io/weaver-test/
Other
436 stars 49 forks source link

Cats instances for Scalacheck `Gen`? #589

Open armanbilge opened 1 year ago

armanbilge commented 1 year ago

Specifically, to help with this: https://github.com/disneystreaming/weaver-test/blob/850a8a6aeb4875d916663092e362eb0bfc24bc99/docs/scalacheck.md?plain=1#L46-L53

Which is a reasonable setup IMO. Personally I'm just missing some of the handy combinators for composition. E.g. it would be nice to express that example using .product or .tupled instead of needing the multi-line for ... yield.

There's options like cats-scalacheck but it would be very convenient to be able to do this out-of-the-box.

Baccata commented 1 year ago

So you're suggesting inlining the instances in weaver ? I'm not fundamentally opposed to it