typelevel / typelevel/scalacheck
Make :| lazy
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 2k
- Forks
- 393
- Avg merge
- 6h 42m
- Merged PRs (30d)
- 4
Description
I have some tests where generation of good string representations is quite expensive. However, I'd like to see them if the test fails, so I put the string representations in the test labels. But then they are computed for every test, regardless of failure, which slows the tests down a lot!
From a brief glance at the code it doesn't look like it's quite as simple as changing the signature of :| to take => String, but it would be nice if this was possible.
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 tracing the :| operator and how test labels are evaluated in ScalaCheck. Confirm how labels are currently computed, then determine how deferred representations should behave when a test fails while preserving existing usage; completion should include coverage for the lazy behavior.
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
- 42/100