Skip to main content

A plugin that allows coll test data for use on Test Tracer

Project description

PyPI version Python versions See Build Status on GitHub Actions

A plugin that allows collecting test data for use on Test Tracer. It is designed to be used with the Pytest BDD tool

Requirements

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_test_tracer_for_pytest_bdd-0.2.7.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file pytest_test_tracer_for_pytest_bdd-0.2.7.tar.gz.

File metadata

File hashes

Hashes for pytest_test_tracer_for_pytest_bdd-0.2.7.tar.gz
Algorithm Hash digest
SHA256 4973a25cef8c9dc39a11e4973ffe00dc992913589ba6bfe3d98f66d1469f40c8
MD5 7f0af7d99e70432ae638ac77b3ca023b
BLAKE2b-256 225c71e1bb013acc15125d0cb73adb650a74110973454bfbe5d98a8df05ff4d6

See more details on using hashes here.

File details

Details for the file pytest_test_tracer_for_pytest_bdd-0.2.7-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_test_tracer_for_pytest_bdd-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e44100f9b1ec2ef92f8ad82425c959f47e73cfda1e0db25f7bac660d48acca23
MD5 60086e63d2aa06262b7a35d717b9b56d
BLAKE2b-256 143da5035485eea0e82523f37bcf913f7c7a43b547c1482b5f4fb6449edf4f8e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page