Skip to main content

Write language-agnostic unit tests in Markdown. Run them in pytest.

Project description

TestMark (Pytest Adapter)

Minimal Python adapter around the Node testmark parser.

Requirements

  • Python 3.8+
  • Node.js and the global testmark CLI from npm (npm i -g testmark)

Usage

Pytest adapter:

from testmark import testmark
from slugify import slugify

testmark('examples/slugify.test.md', slugify)

How it works

The Python package defers to the Node CLI for parsing and expects a global testmark binary on PATH.

Running Tests

To test the Python adapter:

cd adapters/pytest
uv sync  # Install venv/pytest
uv run pytest

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

testmark_pytest-0.0.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

testmark_pytest-0.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file testmark_pytest-0.0.1.tar.gz.

File metadata

  • Download URL: testmark_pytest-0.0.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for testmark_pytest-0.0.1.tar.gz
Algorithm Hash digest
SHA256 76322b096175cf7a70331e4b652130cd7791f9e147c93d98ba3fc03c1c3ac8d8
MD5 b397c24711ef453c0c9aa5963b69802a
BLAKE2b-256 2e992a4fa361fbb3a509e2107974d1b7b2044b3e428e41335ee7adf191aa86b4

See more details on using hashes here.

File details

Details for the file testmark_pytest-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for testmark_pytest-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 799a5c773b4362ca4b3b11daa2db252475d4c1eebd3fbde2d4323afbd8c6d105
MD5 212f8f52488f42ee29022fd78a4f4bb4
BLAKE2b-256 0e16f0c341b2c5646e11c339649fbd1649302fee493c2206ba8c34770aab2782

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