typelevel / typelevel/scalacheck

don't shrink for Exceptions

Open
#462 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.