pytest plugin to upload results to opentmi server. Plugin collect various metadata against opentmi Result -schema. User can extend details using pytest metadata plugin.
Install using pip:
pip install pytest-opentmi
plugin is enabled by using --opentmi
CLI argument.
Running with pytest:
pytest --opentmi <host> --opentmi_token <token> [--opentmi_store_logs]
- env variable
OPENTMI_MAX_EXEC_NOTE_LENGTH
can be used to cut long failure notes. Default 1000 characters.
module utilize some special pytest metadata keys. Usage:
pytest --metadata <KEY> <VALUE> ...
Keys:
-
Device Under Test:
DUT_TYPE
(hw, simulator)DUT_SERIAL_NUMBER
DUT_VERSION
DUT_VENDOR
DUT_MODEL
DUT_PROVIDER
-
Software Under Test:
SUT_COMPONENT
(array)SUT_FEATURE
(array)SUT_COMMIT_ID
SUT_BRANCH