typelevel / typelevel/scalacheck-effect
Support customizing parameters on a per PropF basis
Open
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 83
- Forks
- 26
- Avg merge
- 4h 49m
- Merged PRs (30d)
- 4
Description
ScalaCheck supports this like so:
scala> val p = Prop.forAll { (x: Int, y: Int) => (x + y) == (y + x) }
val p: org.scalacheck.Prop = Prop
scala> val q = Prop(prm => p(prm.withInitialSeed(0L)))
val q: org.scalacheck.Prop = Prop
To support in PropF, we could add a method like mapParameters(f: Gen.Parameters => Gen.Parameters): PropF[F].
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the PropF API and the ScalaCheck Prop and Gen.Parameters APIs referenced in the issue. Clarify how a per-PropF parameter transformation should be exposed, then verify that the proposed behavior supports customizing parameters for an individual property without changing unrelated properties.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100