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

Replace maxDiscarded with maxDiscardedFactor, to make more consistent with ScalaCheck #428

Merged
merged 8 commits into from
Dec 18, 2014

Conversation

flicken
Copy link

@flicken flicken commented Nov 2, 2014

ScalaCheck changed maxDiscarded to maxDiscardRatio. ScalaTest should follow, see: typelevel/scalacheck#11

@flicken flicken force-pushed the max-discarded-ratio branch 2 times, most recently from e33488f to 6fd2084 Compare November 8, 2014 00:29
@flicken flicken changed the title Replace maxDiscarded with maxDiscardRatio, to make more consistent with ScalaCheck Replace maxDiscarded with maxDiscardFactor, to make more consistent with ScalaCheck Nov 8, 2014
@flicken flicken changed the title Replace maxDiscarded with maxDiscardFactor, to make more consistent with ScalaCheck Replace maxDiscarded with maxDiscardedFactor, to make more consistent with ScalaCheck Nov 8, 2014
@flicken flicken force-pushed the max-discarded-ratio branch 2 times, most recently from ff9a1f4 to a80be7f Compare November 16, 2014 15:57
@flicken flicken force-pushed the max-discarded-ratio branch 2 times, most recently from b52e2f9 to 2de10b6 Compare November 26, 2014 04:29
@flicken flicken force-pushed the max-discarded-ratio branch 8 times, most recently from 5bded57 to b1278e8 Compare December 5, 2014 22:41
…ertyCheckConfig. (Uses PosX.from factory methods, because "you cannot use macro implementations in the same compilation run that defines them". If scalactic were in a separate compile, this would go away.)
Ensure all references to PropertyCheckConfig -> PropertyCheckConfiguration and update documentation.
Add SizeRange and sizeRange, deprecating MaxSize and maxSize.
Use private[scalatest] fields for legacy param values.
Separate out PropertyCheckConfigurationHelperSuite.
TODO: Try to find a smoother upgrade path---compile errors would likely not indicate to a user that this change was required.  Example error message:
[error] /Users/broberts/Documents/workspace/scalatest/gentests/GenGen/target/scala-2.11/src_managed/test/scala/gengen/GeneratorDrivenPropertyChecksMixinSuite.scala:702: could not find implicit value for parameter config: GeneratorDrivenPropertyChecksMixinSuite.this.PropertyCheckConfiguration
[error]     forAll { (a: String) =>
[error]            ^
…> PropertyCheckConfiguration change. See ConfigImplicitOverrideInClassTest.
…iguration and deprecated PropertyCheckConfig. This allows more seamless upgrades. See fixed ConfigImplicitOverrideInClassTest for an example where this is necessary.
… to scalactic-macros project being separated out in scalatest#457
@bvenners bvenners merged commit 1b99151 into scalatest:master Dec 18, 2014
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

Successfully merging this pull request may close these issues.

None yet

2 participants