Property Based Testing for the ROS node level.
Project description
hypothesis-ros
Hypothesis strategies for ROS node level property based testing.
Installation
❯ pip install git+https://github.com/ros-testing/hypothesis-ros
Usage
❯ pip install ipython
❯ ipython
In [1]: from hypothesis_ros.message_fields import int16
In [2]: int16().example()
Out[2]:-32183
In [3]: int16(min_value=5, max_value=5).example()
Out[3]: 5
Examples
❯ pip install jupyter
❯ cd docs/source/notebooks/
❯ jupyter lab
Documentation
Sphinx documentation (user's guide, API reference)
Build the documentation.
❯ tox -e docs
Open the documentation.
❯ xdg-open ./docs/build/index.html
Interactive documentation (API reference)
❯ ipython
In [1]: from hypothesis_ros import message_fields
In [2]: message_fields?
(module documentation)
In [3]: message_fields.<TAB-replacement>?
(documentation of strategies, etc.)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hypothesis-ros-0.2.0.tar.gz
(13.1 kB
view hashes)
Built Distribution
Close
Hashes for hypothesis_ros-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7743be977fc59afb2a3cb7eb1cc76676936191d7db12089e1a895ec3b126366b |
|
MD5 | f33931d18b3eaee68027fae0fb60c5f9 |
|
BLAKE2b-256 | a4d79229cf823fd6dfbbeaad5c8df70657cafcd2f119f4648c40b6f3916b7836 |