Skip to main content

Pure-stdlib Python testing-harness collection. Zero runtime dependencies.

Project description

testing-kits

Portable pure-Python testing harnesses for reliability, security, AI, and pharmacy-domain software checks. The harnesses use the Python standard library only. Verification patterns are the product.

What this is

testing-kits is a public library of small, inspectable Python test harnesses. Each harness demonstrates one failure mode with a known-good case and a planted-bad case. The repo is meant to be read, reviewed, and ported from; it is not a deployed application.

Current public shape:

  • 100 harnesses across core, security, ai, and pharmacy.
  • One self-contained harness file per pattern.
  • Paired unittest coverage for each harness.
  • Built-in --self-test mode where applicable.
  • Zero runtime dependencies for the harness collection.

Why it exists

AI-assisted and fast-moving code often fails in predictable ways: happy-path-only tests, weak fixtures, missed negative controls, fake confidence from coverage, and broad claims unsupported by the actual test. This repo collects compact proof-shaped patterns for testing those failure modes.

The useful reviewer question is not "does this prove everything is correct?" It does not. The useful question is: "can this harness show a safe case passing and a planted-bad case failing for a specific bug class?"

Current proof baseline

The current proof language is a ratchet, not a blanket proof claim.

  • Inventory: 100 harnesses.
  • Latest documented campaign snapshot: Batch 11, dated 2026-06-27 (Exploratory Proof Layer + deferred-OWASP closeout): 92 required, 0 pending, 8 legacy, 0 failing. See docs/GOLDEN_STATS.md and docs/UPGRADE_CAMPAIGN.md.
  • required: the harness declares TEETH; the gate verifies the correct oracle is not flagged and planted mutants are caught.
  • pending: the harness is counted but has not yet been ratcheted into the required TEETH contract.
  • legacy: pharmacy-domain harnesses tracked under the older soft gate.

Re-run make proof before treating the proof snapshot as a fresh release claim. Do not describe this repo as total correctness proof for any target application.

Install

The harness collection is published to PyPI. It is pure standard library with zero runtime dependencies:

pip install testing-kits
python -c "import harnesses; print('ok')"

The PyPI package ships the importable harnesses collection. The proof toolchain, paired tests, gate suite, and docs live in the repository — clone it to run make proof and reproduce the proof baseline.

Quick start

python --version
make test
make selftest
make proof

Windows fallback when make is unavailable:

python -m unittest discover -s tests -t . -p "test_*.py"
python tools/generate_report.py --check
python tools/proof_audit.py --run-selftests

Inspect one harness

Start with one traceable example before trusting the inventory.

python harnesses/core/statistical_rng_oracle_test_harness.py --self-test
python -m unittest tests.core.test_statistical_rng_oracle_test_harness tests.core.test_statistical_rng_oracle_proof

Reviewer trace:

  1. Open the harness file under harnesses/<category>/.
  2. Find the known-good fixture or reference implementation.
  3. Find the planted-bad fixture, mutant, or negative control.
  4. Open the paired test under tests/<category>/.
  5. Confirm the documentation claims only what the fixture proves.

Layout

harnesses/
  core/       reliability, correctness, data, perf, observability
  security/   auth, injection, supply chain, app-security
  ai/         LLM eval, agents, prompt safety
  pharmacy/   pharmacy-domain software fixtures
tests/        mirrors harnesses/<category>/ with test_*.py files
experiments/  in-progress harnesses, excluded from make test
template/     harness_template.py — scaffold for new harnesses
tools/        report, proof, registry, scan, and control-audit utilities
dashboard/    optional Streamlit viewer; separate dependency surface

Documentation map

Start here

Proof model

Porting and next layers

AI and agent use

Existing maps and references

Failure examples

Dashboard

An optional Streamlit dashboard for running harness self-tests and browsing generated STATUS.md / STATUS.json output lives in dashboard/. It is the only part of the repo with third-party dependencies; the harnesses themselves remain stdlib-only.

python -m pip install -r dashboard/requirements.txt
streamlit run dashboard/app.py

See dashboard/README.md for details.

Status handling

STATUS.md and STATUS.json are generated by make report and uploaded by CI as artifacts. They are not committed as canonical status. The source of truth is the harness code, paired tests, proof audit output, and CI/test output. docs/GOLDEN_STATS.md is only a human-maintained snapshot index for quick reference.

What this repo is not

  • Not a packaged framework.
  • Not a deployed service.
  • Not a dependency-heavy test platform.
  • Not total correctness proof for any target application.
  • Not a substitute for human review, domain review, or production monitoring.
  • Not clinical validation, medication-safety certification, pharmacy-grade correctness assurance, or dosing authority.

Contributing and security

See CONTRIBUTING.md for local setup, the harness contract, and the PR workflow, and CODE_OF_CONDUCT.md for community expectations. Read AGENTS.md, CLAUDE.md, and SECURITY.md before proposing changes. This is a public repository: no secrets, tokens, credentials, private data, real PHI, or sensitive examples belong in commits, fixtures, generated artifacts, issues, or PRs.

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

testing_kits-1.0.0.tar.gz (676.1 kB view details)

Uploaded Source

Built Distribution

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

testing_kits-1.0.0-py3-none-any.whl (761.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: testing_kits-1.0.0.tar.gz
  • Upload date:
  • Size: 676.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for testing_kits-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dca8933aa11ee227d94fc5278cbabf0a9a3a59b31ac5489bdd158498225541a8
MD5 7df144dc526bd4b936405f7623aa54a5
BLAKE2b-256 b312c47046e628e140757cee99225d31388b9a45a8b1ea377ad4cc69c1a0b0e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for testing_kits-1.0.0.tar.gz:

Publisher: release.yml on Lost-secuirty/testing-kits

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: testing_kits-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 761.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for testing_kits-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40b34e08ea5c5e9ca139dcbf30c39e9ba9fffaed942c3052d61a3e6a2ce7d38a
MD5 c79b441eb77d7b9ac0410a6d3db3a861
BLAKE2b-256 d4cd27993123acf2391829e2570cdbf71e0ea58431e3088ca8288be661df4eff

See more details on using hashes here.

Provenance

The following attestation bundles were made for testing_kits-1.0.0-py3-none-any.whl:

Publisher: release.yml on Lost-secuirty/testing-kits

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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