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.3.0.tar.gz
(13.4 kB
view details)
Built Distribution
File details
Details for the file hypothesis-ros-0.3.0.tar.gz
.
File metadata
- Download URL: hypothesis-ros-0.3.0.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af37e3183306782c41cdf683aecae23ee448d3b3076a75481b8090fdc4cd5eaa |
|
MD5 | d65aa27e7f1e2007ef516f07f3098295 |
|
BLAKE2b-256 | 4313633fa679193a09a415df69d4089492308a9a24c6e6db771e21872da62570 |
File details
Details for the file hypothesis_ros-0.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: hypothesis_ros-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d0ea2e8c8edc6513631bc0e9ed766d00ba80bd51ae5fe9fedd98688b5e6a0cf |
|
MD5 | c2c20a9e2d2a9d2d4279faa323d6f253 |
|
BLAKE2b-256 | 6598ed77d1d6490e1ffaec5c5c250d4325d8fe3d75a36ceeb2a4e823fcf6832b |