-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Pytest own tests and hypothesis requirement #2139
Comments
@FRidh all important behaviors are tested by non-hypothesis tests currently hypothesis is only used to do exploitative expanding of some parametric unit-tests for pedantic testing you might want to introduce an untested version of hypothesis as a non-propagating build input or vice versa (makes me wonder if checkInputs for nix would make sense) |
@RonnyPfannschmidt in Nix the problem is that hypothesis depends indirectly on pytest and propagating an untested version is not really possible (anymore). It would be nice if there's a method to test only the non-hypothesis tests. |
@FRidh i see, i believed the testsuite was still executable without hypothesis installed, if that is no longer the case then i will try to investigate a solution over the holidays |
How about if we mark the hypothesis tests? This way they can be excluded using the |
@nicoddemus hypothesis has import time test decorators, a simple mark is not going to help |
Oh you are right. Well I don't really see a solution then. We have the same issue with other libraries now, like |
importorskip could be extended to return something that keeps on raising "Skipped" via Related issue: #4977 |
FWIW Hypothesis doesn't actually depend on pytest - it's perfectly usable with the stdlib Unittest or Django test runners, etc. As of HypothesisWorks/hypothesis#2204 we don't even import |
Closing this because there's no practical resolution, and |
On Nix we automatically run the test suite of a package when building the package. The
pytest
3.0 testsuite requireshypothesis
, and vice versa. Such a circular dependency is problematic. An easy way to "solve" the issue at our side is to simply not run thepytest
testsuite, but I think it's obvious we rather not do that :)Is it possible to test a substantial set of
pytest
withouthypothesis
, and if so, how should this be done?The text was updated successfully, but these errors were encountered: