Level-up your Hypothesis tests with CrossHair.
Project description
hypothesis-crosshair
Add the power of solver-based symbolic execution to your Hypothesis tests with CrossHair.
Just
pip install hypothesis-crosshair
and then add a backend="crosshair" setting, like so:
from hypothesis import given, settings, strategies as st
@settings(backend="crosshair")
@given(st.integers())
def test_needs_solver(x):
assert x != 123456789
Docs hopefully coming soon. In the meantime, start a discussion or file an issue.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for hypothesis_crosshair-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6d60664485d41971af1320a0815dc0a2f2db3c739dcc41f7e7f7777daf09bb0 |
|
MD5 | daf38215b7efd34161369d0c7278a0ea |
|
BLAKE2b-256 | 8abd13876bd235ee01e5c06b62cca3f554cab5eec9663f72cf091711e36b365d |
Close
Hashes for hypothesis_crosshair-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91bfc4d58ff01eb8dc68e4dfb63d5c767b35d95f6a95ddfee5ff8f2808699afc |
|
MD5 | 1c26f338629cbad524ad9bc08e1d1bdc |
|
BLAKE2b-256 | 81356bb07471942ad6bd90fba30bfc10de7f07584663b5a7d7bdf012c6228510 |