pytest
Send pytest results to TestBeaver with built-in JUnit XML output and the CLI.
1. Install the CLI
npm install -D @testbeaver/cli export TESTBEAVER_API_TOKEN=cr_… export TESTBEAVER_PROJECT_ID=…
Create a token under Account. Full CLI reference: CLI docs.
2. Emit JUnit XML
pytest --junitxml=results.xml
You can also set junit_family in pytest.ini / pyproject.toml if you need a specific JUnit XML dialect. Optional: include @testbeaver:<caseId> in the test node id / name to pin a case.
3. Submit to TestBeaver
pytest --junitxml=results.xml testbeaver results submit \ --project "$TESTBEAVER_PROJECT_ID" \ --name "pytest" \ --results results.xml
The CLI matches or creates cases from the report, starts a run, records results, and closes the run. See matching rules on the CLI page.
Other runners
Playwright · Cypress · pytest · JUnit · TestNG · Selenium · CLI