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 |
test-tracer-environment-name |
True |
What environment are you running on? eg: Dev, Production, Staging, etc… |
None |
test-tracer-run-alias |
No |
If you want to you can provide an alias for this run. For example a run called “API Authentication Tests” will allow you to view, group and report on all tests that were part of that run |
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.3.5.tar.gz
.
File metadata
- Download URL: pytest_test_tracer_for_pytest_bdd-0.3.5.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e621f0ab63be30aab9ebf3160089e7f92ed8f6bdb3c6cd60ad7bafb5c1ea5054 |
|
MD5 | 13f7a2a26bbaa02bb980315231eb212a |
|
BLAKE2b-256 | 99ba57de9de343e964e712b0837fbd9967e256cc65c43fb4f88ff3142818e7d7 |
File details
Details for the file pytest_test_tracer_for_pytest_bdd-0.3.5-py3-none-any.whl
.
File metadata
- Download URL: pytest_test_tracer_for_pytest_bdd-0.3.5-py3-none-any.whl
- Upload date:
- Size: 9.5 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 | e064259dc11eba2ed7fe40ffb82971cb97c02611e323fc571c3effd64e2f4005 |
|
MD5 | 58672e01583740c1ce90609b0130b4b2 |
|
BLAKE2b-256 | 2f0235c5b7922e84dfe36bc6591c8b30a026292a4d2df6807a7edaa12a24c6cb |