IUTest
"IUTest" stands for "Interactive UnitTest", it is an interactive python unit-test runner that aims to support various unit-test frameworks like nose2, pytest, etc.
It has a pretty yummy Chinese name "Youtiao", which is Chinese fried breadstick typically for breakfast :)
To install IUTest
# For system default python or virtual env
pip install iutest
# For pipenv python
pipenv install iutest
IUTest Command Line Interface
# Get version:
iutest --version
# Run IUTest UI:
iutest
# or
iutest --ui
# Run all tests recursively within a directory:
iutest --runner "nose2" --runTests "E:/projects/iutest"
# Run tests by python module paths:
iutest --runner "nose2" --runTests "iutest.tests.test_dummypyunits" --runTests "iutest.tests.iutests"
# Run test but stop at first error / failure:
iutest --runner "nose2" --runTests "iutest" --stopOnError
Run tests in python
import sys
testerPath = 'E:/projects/iutest' # Change to your path!
if testerPath not in sys.path:
sys.path.append(testerPath)
import iutest
# Run all tests under given file system path:
iutest.runTests("nose2", 'path/To/Test/RootDir')
# Run tests by given python module paths:
iutest.runTests("nose2", "iutest.tests.test_dummytests", "iutest.tests.iutests")
Run UI in python
import sys
testerPath = 'E:/projects/iutest' # Change to your path!
if testerPath not in sys.path:
sys.path.append(testerPath)
import iutest
iutest.runUi()
Run IUTest in DCC application, e.g. Maya
It is easy to use pip with Maya, with pip available in mayapy, you just need to do mayapy -m pip install packageName for each package we need: iutest, reimport, nose2 or pytest.
However, pip requires root privilege and it did introduce many potential risks, so to use iutest in Maya without pip:
Metadata
Release files for iutest 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| iutest-0.1.5.tar.gz | 890.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iutest-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.8 MB
Release files / iutest-0.1.5.tar.gz
| Download URL | iutest-0.1.5.tar.gz |
|---|---|
| Size | 890.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44bfda47dbc90491b332eb9653ffab86e51324bfd5fa3f438d7c2f5ca0331749
|
|
BLAKE2b-256 checksum How to use checksums |
7e5fd8d65907f3a7fa82eb90e609bfbaedf9d733e09268ec9a115aca167c855f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4
|
Release files / iutest-0.1.5-py3-none-any.whl
| Download URL | iutest-0.1.5-py3-none-any.whl |
|---|---|
| Size | 951.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44d5603394404b2d457c33fa4572b7d1eb6ca4894cbc339d6b832a9cc2d4a262
|
|
BLAKE2b-256 checksum How to use checksums |
d11d044a5889c5e0d609cc3fa75ce7ad474e864ec67e59096eb5d181c7c4d909
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4
|
Security for iutest 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.