Skip to content
pyqaPublic

About

Python test framework and pytest plugin: browser tests on Playwright or Selenium, plus accessibility (WCAG/axe), Core Web Vitals, security headers, OpenAPI contract, visual regression and MCP server checks in one report

Topics

Resources

Code of conduct

Contributing

Stars

39 stars

Watchers

8 watching

Forks

Repository files navigation

prodigyqa

CI Docs Python 3.11+ License: Apache 2.0

A Python test framework and pytest plugin for browser tests on Playwright or Selenium, with accessibility (WCAG 2.2, axe-core), Core Web Vitals, security header, API contract (OpenAPI), visual regression and MCP server checks in one report.

Check every non-functional requirement in one go. One command loads your pages, runs your tests, and tells you what to fix: performance, accessibility, security and reliability, in one report with one exit code.

pip install 'prodigyqa[ui]' && playwright install chromium
prodigyqa check https://your-site.example
prodigyqa: failed | 7 checks | 2 need attention
  FAILED   accessibility (https://your-site.example/): 3 problem(s)
  WARNED   security (https://your-site.example/): 2 problem(s)
report: prodigyqa-report/report.html

The report opens on what needs your attention, with a fix next to every problem. Nothing else to configure.

Coming from 1.x? 2.0 is a rewrite; see the migration guide.

What it does

  • One command for every NFR. prodigyqa check measures Core Web Vitals (LCP, CLS), runs axe-core's WCAG 2.2 AA rules, checks HTTPS, cookies and security headers, and catches page errors and failing requests, all from one page load.
  • MCP servers too. prodigyqa check --mcp "uv run python server.py" pins the server's tool contract, checks it against the MCP spec, runs your scenarios, measures latency and scans everything the model reads for hidden instructions (tool poisoning).
  • APIs from their spec. prodigyqa check --api http://localhost:8000/openapi.json sends generated requests to every operation and reports server errors, broken auth, slow responses and answers that break the spec, each with a curl line to reproduce it. Only safe methods are sent unless you allow more.
  • The project's own files, with no app running. prodigyqa check --code, or plain prodigyqa check in a fresh project, finds config that doesn't parse, containers without limits or probes, migrations that drop data, staging config pointing at production, committed keys and locked dependencies with known vulnerabilities.
  • How pages look, and what they say. Approve a page's look once with --update-baselines, and every later run compares a screenshot with it, with the changes drawn in red. --crawl checks every page a site links to, then its broken links and spelling.
  • Request ids and model spend. Every page is checked for a request id and trace context, so a failure can be found in your logs. Calls your tests make to model APIs are metered and held to a budget.
  • Data, compared. prodigyqa check --compare golden.csv out.csv, or assert_same() in a test, lists every difference between CSV, Excel and JSON files, by key, with tolerances.
  • A pytest plugin, not a new runner. Install it and every test outcome lands in the same report. Add --qa-nfr and every page your tests open is checked too.
  • Readable browser tests on Playwright or Selenium. ui.find(role="button", name="Sign in"), or name elements once in a locator file and write ui["login.submit"]. Every action waits for its element, so there are no waits to write. backend = "selenium" runs the same tests on a Selenium Grid.
  • Run anywhere. --executor docker runs the whole check in a fresh container from your image, so every machine gets the same pixels; plugins add other places, like a Kubernetes cluster.
  • Honest results. What can't be measured is shown as skipped with the reason, never as passed.
  • Your coding agent checks its own work. Add prodigyqa mcp to Claude Code, Cursor or VS Code and the agent can run your tests and every NFR check, then read what failed, with the same report you get. See coding agents.
  • Built for agents too. --json prints the results; AGENTS.md and llms.txt tell coding agents how to use and change it.

Five-minute start

Read the quickstart, or run the examples:

pytest examples --qa-report=prodigyqa-report
prodigyqa check --tests examples/ui

Documentation

Contributing

See CONTRIBUTING.md. Everyone taking part follows the code of conduct.

License

prodigyqa is licensed under the Apache License 2.0.

About

Python test framework and pytest plugin: browser tests on Playwright or Selenium, plus accessibility (WCAG/axe), Core Web Vitals, security headers, OpenAPI contract, visual regression and MCP server checks in one report

Topics

Resources

Code of conduct

Contributing

Stars

39 stars

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages