https://github.com/opentmi/pytest-opentmi
https://github.com/opentmi/pytest-opentmi
opentmi pytest-plugin python
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/opentmi/pytest-opentmi
- Owner: OpenTMI
- License: mit
- Created: 2020-03-04T15:49:11.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-22T13:38:40.000Z (about 1 year ago)
- Last Synced: 2025-04-04T07:23:25.942Z (about 1 year ago)
- Topics: opentmi, pytest-plugin, python
- Language: Python
- Size: 59.6 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## pytest reporting plugin for opentmi
[](https://github.com/OpenTMI/pytest-opentmi/actions/workflows/build-test.yml)
[](https://badge.fury.io/py/pytest-opentmi)
pytest plugin to upload results to opentmi server.
Plugin collect various metadata against opentmi Result -schema.
User can extend details using pytest metadata plugin.
## Usage
Install using pip:
`pip install pytest-opentmi`
plugin is enabled by using `--opentmi` CLI argument.
Running with pytest:
`pytest --opentmi --opentmi_token [--opentmi_store_logs]`
### Configuration
* env variable `OPENTMI_MAX_EXEC_NOTE_LENGTH` can be used to cut long failure notes. Default 1000 characters.
### metadata
module utilize some special pytest metadata keys.
Usage:
`pytest --metadata ...`
**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`