Automatically test Python code using icontract-hypothesis in Thonny.
Project description
thonny-icontract-hypothesis is a plug-in for Thonny IDE to automatically test Python code using icontract-hypothesis.
Installation
In Thonny
The plug-in can be easily installed via Thonny. Go to Tools menu and select Manage plug-ins...:
Search for thonny-icontract-hypothesis:
TODO add screenshots once published
With pip
In your virtual environment, invoke:
pip install --user thonny-icontract-hypothesis
Usage
To check all the functions in the file with icontract-hypothesis, go to Tools menu and select Test the current file with icontract-hypothesis:
All changes to the file will be saved prior to executing the tests. If you prefer, you can undo them.
The tests will be executed in the Thonny shell:
You can stop the tests with the “Stop” sign:
Sometimes it is practical to test only a single function (e.g., if it takes too long to test the whole file). In that case, move the caret to the body of the function that you would like to test, go to Tools menu and select Test the function under the caret with icontract-hypothesis:
Contributing
Feature requests or bug reports are always very, very welcome!
Please see quickly if the issue does not already exist in the issue section and, if not, create a new issue.
You can also contribute in code. Please see contributing.rst.
Versioning
We follow a bit unusual semantic versioning schema:
X is the oldest supported version of icontract-hypothesis,
Y is the minor version (new or modified features), and
Z is the patch version (only bug fixes).
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
File details
Details for the file thonny-icontract-hypothesis-1.0.0a1.tar.gz
.
File metadata
- Download URL: thonny-icontract-hypothesis-1.0.0a1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65aa7b6ea7179045fb7dac4b05d5d0869813abe0fda9f872765ae831af2482b8 |
|
MD5 | ce612e5fd90a4291760ffb942ecfd030 |
|
BLAKE2b-256 | a0219498bb0042648e2c23c03aadf6b9581e7ea664f32681fc4d428f79526a11 |