Skip to main content

Test Tracer for Pytest

PyPI version Python versions See Build Status on GitHub Actions

A plugin that allows collecting test data for use on Test Tracer.

Requirements

  • pytest

  • 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

Usage

Install the Plugin then activate it using the following Pytest parameters

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.

Metadata

Release files for pytest-test-tracer-for-pytest 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-test-tracer-for-pytest 0.1.1
File Size Uploaded
pytest_test_tracer_for_pytest-0.1.1.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-test-tracer-for-pytest 0.1.1
File Interpreter ABI Platform
pytest_test_tracer_for_pytest-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.9 kB

Release files / pytest_test_tracer_for_pytest-0.1.1.tar.gz

Download URL pytest_test_tracer_for_pytest-0.1.1.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
fd1e441da6b603b09ca91c49593cf4ddc2bd67d889e0843cc42824271b77887a
BLAKE2b-256 checksum
How to use checksums
c948932b4ee1ed304e61dc7333dfc285679a2416a4fd3921913f7bb9dab18793
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.2

Release files / pytest_test_tracer_for_pytest-0.1.1-py3-none-any.whl

Download URL pytest_test_tracer_for_pytest-0.1.1-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fec2a89bb90d16f319e0139c42787757eb0eb45d144acb6e0ae90672ff812f96
BLAKE2b-256 checksum
How to use checksums
d7306fc6f86c256869d3a667c11f3292ee4c6a93a47739e4b5f971058784057b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.2

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page