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 ipython
❯ pip install "ipython[notebook]"
❯ jupyter notebook docs/source/notebooks/core_pub_sub_hypothesis_ros.ipynb
Documentation
❯ 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.1.0.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for hypothesis_ros-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13e2856b839cb8d3b426e65fa5fbb7eb76d0b16135209aca2b8a7a87d01b3183 |
|
MD5 | 13d52dcc4c1ee60320a35efd69781cba |
|
BLAKE2b-256 | 1e374bb3bad68b5142b271c310e0d35d940f735135f918fc62335ded938426d2 |