Zelos Test Plugins¶
Overview¶
The Zelos Test Framework provides various pytest plugins to augment your test suite.
Plugins¶
- Checker: Perform test assertions with pretty output
- Report: Generate a test report summary html file
- Trace: Stream and/or record test data
- Zr: Perform tests on Zelos Hardware
Usage¶
Add plugins to the pytest_plugins
list in your conftest.py
file:
pytest_plugins = [
"zeloscloud.pytest.checker",
"zeloscloud.pytest.report",
"zeloscloud.pytest.trace",
# Add additional plugins here
]
Configuration¶
Some plugins require a config parameter local_artifacts_dir
to be set.
This is the directory where the plugins will store their artifacts, if any.
Set --local-artifacts-dir="artifacts"
on the command line or in your pytest.ini file:
[pytest]
addopts = --local-artifacts-dir="artifacts"