Skip to main content

Test step decorator and HTML reporting plugin for pytest

Project description

Test step

test-step is a simple extension of the pytest framework that allows defining test steps inside tests, including file attachments and displaying steps in html reports.

Requirements

Python >=3.11
pip
virtualenv

Setup

virtualenv venv -p <name of Python 3 executable>
source ./venv/bin/activate
pip install -e ".[test]"

Extras overview:

  • .[test]: contributor/development setup (test dependencies, lint tooling, and parallel test execution support).

Run Tests

In order to run tests on the command line

source ./venv/bin/activate
pytest

Run lint

In order to run lint on the command line

source ./venv/bin/activate
ruff check .

To automatically fix some issues, run ruff check . --fix.

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

test_step-1.1.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

test_step-1.1.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file test_step-1.1.0.tar.gz.

File metadata

  • Download URL: test_step-1.1.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for test_step-1.1.0.tar.gz
Algorithm Hash digest
SHA256 fa77f5536896fd31165ffdc5cedf6cd888abb28fbe5693c39a6541e0710229a1
MD5 0a6d1964cf37a99783ab9532cbfd06b1
BLAKE2b-256 818a54300912fb3fddd4fb4284ae009334199821b478e7596e62cf40b4b02fec

See more details on using hashes here.

File details

Details for the file test_step-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: test_step-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for test_step-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa1c8e9550e2614848ad5e81dbc688603f300e0cf062e99c034903f57572f3de
MD5 b53e7963457a6cd30027add7113f5a8e
BLAKE2b-256 f742f92cf3df89ac7e6ee426401b7ca8d8f7cc848c6a8f82d90e1526b41f835d

See more details on using hashes here.

Supported by

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