These are chat archives for etorreborre/specs2
scalacheck.seedcommand line property to set an initial seed or to set it from within specs2 (e.g., in
org.specs2.scalacheck.ScalaCheckPropertyCheck. In method
check, why do you need to have
capturedSeedas a variable?
Prop.viewSeedwhich just adds a println when the property has finished executing. So the only way to grab the initialSeed used in the regular case (not when you want to reproduce a failure) is to do what
viewSeeddoes and capture that initial seed. All my other attempts failed.
build.sbtdoesn't set this up on its own and I don't have it installed and configured system-wide.
testsmodule with sbt you can run the tests there (they’re all JVM ones) and you should see some failures
sbt> cd testsbut that’s because I have
addCommandAlias("cd", "project”)in my configuration for sbt :-). So it’s
sbt> project tests
[error] Failed: Total 1087, Failed 3, Errors 0, Passed 1084, Pending 1 [error] Failed tests: [error] org.specs2.scalacheck.ScalaCheckMatchersResultsSpec [error] (tests/test:test) sbt.TestsFailedException: Tests unsuccessful [error] Total time: 26 s, completed Apr 26, 2018 3:19:28 PM
verbosity = 0