Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG(?): test falsifiable but "no exceptinos thrown" #287

Open
tg4nd4lf opened this issue Feb 15, 2022 · 1 comment
Open

BUG(?): test falsifiable but "no exceptinos thrown" #287

tg4nd4lf opened this issue Feb 15, 2022 · 1 comment

Comments

@tg4nd4lf
Copy link

Hi,
i am using rapidcheck to test an embedded project.

I came upon an odd situation, where i ran an Test (max_success=100; noshrink=true) and it said, that it is "Falsifiable after 73 tests" but down on the end "no exceptions thrown".

pic1

In my code i have 1 RC_ASSERT to check a condition. So normally when a test fails it also gives the line & which assert failed.

So since the documentation says there are only 3 possible outcomes (success, failure, gave up) i checked the source code but could not find anything.
Also when rerunning the test with teh seed its sais that "Failure: Reproduced result is not a failure".

pic2

Any help for me? Do i miss something? Or is it a bug?

Greetings!

@emil-e
Copy link
Owner

emil-e commented Mar 14, 2022

It's likely that your code is not deterministic with regards to the generated inputs. If your code does not give the exact same result every time with the given inputs, RapidCheck will not work correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants