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]"

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.0.0.tar.gz (15.8 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.0.0-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for test_step-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1023e01dd333728424eb93181f1226e386b0343e5452e0d20c8cc92965e05a12
MD5 4cf0446b9e1ae7987e06593d1873a23e
BLAKE2b-256 4134d2eb5e7161416421fbaf1ab6702e8283eec9c87b39e0317ec104af72dc22

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for test_step-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f23c8821375f3266014d0ee24702cf9a691f1ffc5cc71d03418facfd26977104
MD5 2cfda17004ce340f0841f52cc40f1fd5
BLAKE2b-256 794d03b2bbdfc210ea29d689b92c81f393a8161655f2bbe46fc5865684a84184

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