pytest-opentmi


Namepytest-opentmi JSON
Version 0.5.1 PyPI version JSON
download
home_pagehttps://github.com/opentmi/pytest-opentmi
Summarypytest plugin for publish results to opentmi
upload_time2024-09-05 09:50:05
maintainerNone
docs_urlNone
authorJussi Vatjus-Anttila
requires_python>=3.6
licenseMozilla Public License 2.0 (MPL 2.0)
keywords py.test pytest opentmi report
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            ## pytest reporting plugin for opentmi

[![Unit tests](https://github.com/OpenTMI/pytest-opentmi/actions/workflows/build-test.yml/badge.svg)](https://github.com/OpenTMI/pytest-opentmi/actions/workflows/build-test.yml)
[![PyPI version](https://badge.fury.io/py/pytest-opentmi.svg)](https://badge.fury.io/py/pytest-opentmi)
<!-- [![Coverage Status](https://coveralls.io/repos/github/OpenTMI/pytest-opentmi/badge.svg)](https://coveralls.io/github/OpenTMI/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 <host> --opentmi_token <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 <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`



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/opentmi/pytest-opentmi",
    "name": "pytest-opentmi",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "py.test pytest opentmi report",
    "author": "Jussi Vatjus-Anttila",
    "author_email": "jussiva@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/ef/bc/28b2c85a368b9800ba5fe16eb67c61e6ae77463783be9cc19555b59850d7/pytest-opentmi-0.5.1.tar.gz",
    "platform": null,
    "description": "## pytest reporting plugin for opentmi\n\n[![Unit tests](https://github.com/OpenTMI/pytest-opentmi/actions/workflows/build-test.yml/badge.svg)](https://github.com/OpenTMI/pytest-opentmi/actions/workflows/build-test.yml)\n[![PyPI version](https://badge.fury.io/py/pytest-opentmi.svg)](https://badge.fury.io/py/pytest-opentmi)\n<!-- [![Coverage Status](https://coveralls.io/repos/github/OpenTMI/pytest-opentmi/badge.svg)](https://coveralls.io/github/OpenTMI/pytest-opentmi) -->\n\n\npytest plugin to upload results to opentmi server.\nPlugin collect various metadata against opentmi Result -schema.\nUser can extend details using pytest metadata plugin.\n\n## Usage\n\nInstall using pip:\n\n`pip install pytest-opentmi`\n\nplugin is enabled by using `--opentmi` CLI argument.\n\nRunning with pytest:\n\n`pytest --opentmi <host> --opentmi_token <token> [--opentmi_store_logs]`\n\n\n### Configuration\n\n* env variable `OPENTMI_MAX_EXEC_NOTE_LENGTH` can be used to cut long failure notes. Default 1000 characters.\n\n### metadata\n\nmodule utilize some special pytest metadata keys.\nUsage:\n\n`pytest --metadata <KEY> <VALUE> ...`\n\n**Keys:**\n\n* Device Under Test:\n  * `DUT_TYPE`  (hw, simulator)\n  * `DUT_SERIAL_NUMBER`\n  * `DUT_VERSION`\n  * `DUT_VENDOR`\n  * `DUT_MODEL`\n  * `DUT_PROVIDER`\n\n* Software Under Test:\n  * `SUT_COMPONENT` (array)\n  * `SUT_FEATURE` (array)\n  * `SUT_COMMIT_ID`\n  * `SUT_BRANCH`\n\n\n",
    "bugtrack_url": null,
    "license": "Mozilla Public License 2.0 (MPL 2.0)",
    "summary": "pytest plugin for publish results to opentmi",
    "version": "0.5.1",
    "project_urls": {
        "Homepage": "https://github.com/opentmi/pytest-opentmi"
    },
    "split_keywords": [
        "py.test",
        "pytest",
        "opentmi",
        "report"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e3fb357cfa979de3d47888623cda4d3e3669100f7777b9eaf690ea2ac284947c",
                "md5": "7753ebd6e4d732a9d5320b468b8c23b5",
                "sha256": "57053a606e3588745266e4f09b0de90a565285ba137722e1f164647e1cf4ff8b"
            },
            "downloads": -1,
            "filename": "pytest_opentmi-0.5.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7753ebd6e4d732a9d5320b468b8c23b5",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.6",
            "size": 8177,
            "upload_time": "2024-09-05T09:50:04",
            "upload_time_iso_8601": "2024-09-05T09:50:04.349260Z",
            "url": "https://files.pythonhosted.org/packages/e3/fb/357cfa979de3d47888623cda4d3e3669100f7777b9eaf690ea2ac284947c/pytest_opentmi-0.5.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "efbc28b2c85a368b9800ba5fe16eb67c61e6ae77463783be9cc19555b59850d7",
                "md5": "fdd5a7e9620dd8699aea28712bc396a6",
                "sha256": "61198fbd8341e1653b937da30fa5fb4c19fb8847e7621ffc9576043893a4faf9"
            },
            "downloads": -1,
            "filename": "pytest-opentmi-0.5.1.tar.gz",
            "has_sig": false,
            "md5_digest": "fdd5a7e9620dd8699aea28712bc396a6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 16889,
            "upload_time": "2024-09-05T09:50:05",
            "upload_time_iso_8601": "2024-09-05T09:50:05.612335Z",
            "url": "https://files.pythonhosted.org/packages/ef/bc/28b2c85a368b9800ba5fe16eb67c61e6ae77463783be9cc19555b59850d7/pytest-opentmi-0.5.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-05 09:50:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "opentmi",
    "github_project": "pytest-opentmi",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "pytest-opentmi"
}
        
Elapsed time: 0.65565s