A plugin that allows coll test data for use on Test Tracer
Project description
A plugin that allows collecting test data for use on Test Tracer. It is designed to be used with the Pytest BDD tool
Requirements
A free Test Tracer account
An API token that allows uploading the test result
Installation
You can install “pytest-test-tracer-for-pytest” via pip from PyPI:
$ pip install pytest-test-tracer-for-pytest-bdd
Usage
Install the Plugin then activate it using the following Pytest parameters
Parameter Name |
Required |
Description |
Default Value |
---|---|---|---|
test-tracer-run-reference |
No |
By default, Test Tracer Runs are grouped one per Pytest run. If you want multiple Pytest runs to be visible in the same Test Tracer Run, you can specify your own unique run reference. Useful if you split up your test runs into several parallel runs |
A GUID |
use-test-tracer |
No |
Provide this argument to enable the Test Tracer plugin |
False |
build-version |
No |
If your application under test has a build version. You can enter it here. |
None |
build-revision |
Yes |
A unique revision for your application under test. Typically this is a git commit hash, an SVN revision, or any other string that identifies the current code base |
None |
test-tracer-project-name |
Yes |
The name of the Project that this test is for. You can give it the name of your application, a single microservice, or any other way that you choose to describe the thing being tested. |
None |
branch-name |
Yes |
The name of the branch that is being tested |
None |
test-tracer-no-upload |
No |
If you provide this argument, Test Tracer will still generate test result data, but it won’t attempt to upload it to Test Tracer |
False |
test-tracer-upload-token |
No |
If you want to upload results to Test Tracer, you need to specify the API token used to secure the upload |
None |
Here is an example of using the Test Tracer for Pytest plugin with Git as the source control:
$ pytest --branch-name=$(git rev-parse --abbrev-ref HEAD) --build-revision=$(git rev-parse --short HEAD) --test-tracer-project-name="Your Project Name" --test-tracer-upload-token="Your Test Tracer Upload Token"
License
Distributed under the terms of the MIT license, “pytest-test-tracer-for-pytest” is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pytest_test_tracer_for_pytest_bdd-0.1.4.tar.gz
.
File metadata
- Download URL: pytest_test_tracer_for_pytest_bdd-0.1.4.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ad7fa491851c37084fb3513abf04d09d1ef7c60c72bf74f6c8eaf2da2870181 |
|
MD5 | de37aacae5ca1bab74e127312f29984d |
|
BLAKE2b-256 | f12058807526020cbf3fd39fe88b1396761fe33fb1cfe1d0a40160b72c379476 |
File details
Details for the file pytest_test_tracer_for_pytest_bdd-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: pytest_test_tracer_for_pytest_bdd-0.1.4-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef08d407b4571e35a26180621d43b2a659a91e419f4bef8a9777339dfab4b50c |
|
MD5 | 1785c7829dec16ca5ef17fb6e8ea0292 |
|
BLAKE2b-256 | ac1b14bd2351cd470718dfb3e1c50e78d11ac8ebb4babf378be3c59f0734e193 |