Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need options to specify "-S" option in maven/gradle/bazel #62

Open
tribbloid opened this issue Jun 7, 2023 · 2 comments
Open

Need options to specify "-S" option in maven/gradle/bazel #62

tribbloid opened this issue Jun 7, 2023 · 2 comments

Comments

@tribbloid
Copy link

According to the official document of scalatest + scalacheck integration:

https://www.scalatest.org/user_guide/property_based_testing

The only bay to specify randomisation seed is through sbt:

testOptions += Tests.Argument(TestFrameworks.ScalaTest, "-S", "123456789")

In the meantime, many of the largest Scala project that uses scalatest + scalacheck (e.g. twitter's The Algorithm & Apache Spark) have chosen maven / bazel instead of sbt. This effectively blocked them from using this feature.

We need to expose this option to all build systems equally, not just sbt

@cheeseng
Copy link
Contributor

cheeseng commented Jun 8, 2023

@tribbloid It is actually an official argument supported by Runner, but seems like we didn't include it in the following page:

https://www.scalatest.org/user_guide/using_the_runner

I'll include it in that page, meanwhile I'll check our maven plugin to make sure it accepts the argument. I am not sure about bazel though.

@tribbloid
Copy link
Author

@cheeseng thanks a lot! I ignored it first as it doesn't contain "-S" for random seed (it is in the sourcecode, as in the latest version), I hope that's the only missing piece

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants