In the end, I found a way to write my test, which is taken into account by Scalatest. I used the Checkers property instead of PropertyChecks:
class MyProperties extends PropSpec with Checkers { property("My property") { val myProperty: org.scalacheck.Prop = new MyProperty
I'm not sure if this is the best way to write this, but I get what I wanted. Locally:
*** FAILED *** GeneratorDrivenPropertyCheckFailedException was thrown during property evaluation. (MyProperties.scala:175) Falsified after 0 successful property evaluations. Location: (MyProperties.scala:175) Occurred when passed generated values ( arg0 = myGeneratedArgument )
and finally:
Run completed in 4 seconds, 514 milliseconds. Total number of tests run: 1 Suites: completed 1, aborted 0 Tests: succeeded 0, failed 1, canceled 0, ignored 0, pending 0 *** 1 TESTS FAILED ***
If someone could appreciate this offer, I would be happy ^^
source share