typelevel / typelevel/scalacheck
don't shrink for Exceptions
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 2k
- Forks
- 393
- Avg merge
- 6h 42m
- Merged PRs (30d)
- 4
Description
e.g. in my current use case, a entity is created and saved to mongoDB. If mongoDB is unavailable, a MongoTimeoutException is thrown (after 5 sec) and the test shrinks continues shrinking the entity for a long time.
It would be great, if I could disable shrinking for certain Exceptions (like MongoTimeoutException) or disable it by default and just allow shrinking for e.g. TestFailedExceptions.
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 how ScalaCheck handles shrinking after exceptions, especially MongoTimeoutException and TestFailedException. Determine where exception types could be distinguished and define the expected behavior for configurable shrinking; done means the requested exception handling is supported and covered by regression tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mongodb, scala
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100