Generation of arbitrary case classes / ADTs instances with Scalacheck and Magnolia!
Because scalacheck-shapeless is good but too slow. Also this is much smaller and understandable, thanks to Magnolia!
Just copy the files in src/main/scala to your project. It's 2 files, less than 60 lines in total! And you don't have to care about updating Scalacheck or Magnolia
import scalacheckmagnolia.MagnoliaArbitrary._
import org.scalacheck._
case class Example(a: String, b: Long)
val arbitraryExample = implicitly[Arbitrary[Example]]
println(arbitraryExample.arbitrary.sample.get)