Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Fail after too many additional attempts to evaluate a property #96

Open
jcornaz opened this issue Dec 1, 2019 · 0 comments
Open

Fail after too many additional attempts to evaluate a property #96

jcornaz opened this issue Dec 1, 2019 · 0 comments

Comments

@jcornaz
Copy link
Owner

jcornaz commented Dec 1, 2019

Some generator configurations (when using sets, maps or filter), or usage of features like skip or ensureAtLeastOne, might require to generate impossible inputs and lead to a situation where the test is hanging forever.

It is not a huge problem per say, since I believe that the test engine, or eventually the build system, should be responsible for failing after a too long period of time (timeout).

However, Kwik could feature a mechanism that fail faster if the likeliness of being able to generate an input is too low.

For instance the test could fail if more than 10'000 inputs had to be rejected.

It should be of course configurable. System property sound like a good way to configure it.

@jcornaz jcornaz changed the title Fail after too many additional attempt to evaluate a property Fail after too many additional attempts to evaluate a property Oct 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant