GitHub Pull Request Testing
When GitHub and Vercel are connected for a Project, QA.army runs regression
tests and dynamic tests on each qualifying pull request. Results appear as
a GitHub check named QA.army and as a report in Project → Tests → Pull
Requests.
The check targets the pull-request revision and the matching HTTPS Vercel preview URL. Success requires both suites to finish with complete passing Runs, finalized evidence, and confirmed cleanup. A result of no applicable tests is not a passing Run.
QA.army publishes the check. It does not change GitHub branch protection;
require the QA.army check in GitHub if you want it to block merge.
What each suite does
- Regression tests re-run the saved Test Groups selected on the Project’s GitHub deployment watch, against the matching preview.
- Dynamic tests identify changed user behavior, run up to three generated Tests on that preview, and report what passed, failed, or could not be verified.
A new commit supersedes pending work. Draft pull requests skip dynamic testing until they are ready for review. Fork pull requests are excluded. Closed pull requests are not tested.
Configure a Project
Dynamic tests and regression tests have separate setup requirements.
Dynamic tests. A Workspace Owner must enable them. Enabling also requires an active Workspace Run allowance and either a connected preview provider or an enabled GitHub deployment watch.
Regression tests. Enable a GitHub deployment watch and select the Test Groups that should run on matching deployments.
Then:
- Connect GitHub and select the repository in Project → Integrations.
- Connect Vercel and select the Vercel Project. Configure preview protection access when needed.
- Configure sandbox test accounts for authenticated behavior. Confirm that previews use disposable sandbox data and cannot make real payments, send external messages, or perform destructive account operations.
- As a Workspace Owner, enable Dynamic PR Tests and choose a limit from one to three Tests per PR revision.
Regression Test Groups remain independently configured. Dynamic Tests can run while regression execution is paused.
Select regression Test Groups with an agent
A claimed agent acting for a Workspace Owner can read and update an existing connected GitHub deployment watch using CLI 0.2.11 or MCP 0.1.4. Reuse the same CLI authorization; no second API key is required for this operation. Connecting an integration or approving repository access remains a separate user operation.
Read the current watch first:
Keep its repository ID and every selected Test Group you want to retain. Save
the complete desired selection as watch.json; replace these example values
with IDs returned by QA.army:
The update replaces the full selection. The repository must remain the same,
and every selected Group must belong to this Project. Preserve the existing
enabled value unless you intend to change it. Compare the readback with the
intended repository, Groups, and enabled state. There is no version precondition
or request key: coordinate one writer and reconcile a conflict or uncertain
response from a fresh read instead of automatically repeating the update.
MCP uses prs.watch with integration_id. prs.watch_update accepts
integration_id, repository_id, test_group_ids, and enabled together.
Saving the watch does not start a manual Run or establish a passing result. The next matching qualified deployment requests regression coverage. Review the actual Runs and evidence for that revision. Disabled Tests stay disabled, and missing account or execution prerequisites still need to be resolved. This operation does not configure Dynamic PR Tests.
Read the GitHub check
Open the pull request Checks list and select QA.army. The check title is
QA.army: PASSED when both suites pass, or QA.army: followed by the combined
state.
The summary includes:
- the target revision (commit SHA)
- the target preview URL
- Regression tests and Dynamic tests states, such as
PASSED (COMPLETE_EXECUTION) - links to the dashboard Regression tests and Dynamic tests sections
- a link for each executed Run
The check details URL opens the same report in the QA.army app.
Read the report
Open Project → Tests → Pull Requests. Each report identifies the exact PR revision, planned behavior, expected results, coverage gaps, execution status, and links to canonical Run evidence. Inferred requirements appear as review suggestions and do not execute automatically.
- Passed: the executed scenarios passed with finalized evidence.
- Failed: an assertion found a product failure.
- Error: configuration, infrastructure, or evidence prevented a trustworthy result.
- No applicable Tests: no supported change required dynamic coverage; this is not a pass.
- Superseded / cancelled: the attempt is obsolete or was cancelled.
A preview must belong to the selected Vercel Project and match the PR commit. Missing previews time out after 30 minutes. A setup error can be corrected and explicitly rerun.
Use Save as regression to retain a useful scenario in a chosen Test Group. This creates an editable copy; the original verification and evidence stay unchanged.
Understand usage
Planning is included. Each completed generated Test or regression Test with a trustworthy passed or failed result consumes one Run from the shared Workspace allowance, including the $0 Free plan’s 100 Runs total. Errors, cancellations, planning retries, and report retries do not consume Runs.
Three dynamic Tests and two regression Tests can consume five Runs. If the complete dynamic plan does not fit the remaining allowance, it pauses. There are no automatic overages. Explicit reruns may consume new Runs; review that cost before confirming.
CLI and MCP
The same REST authorization and results are available from the CLI:
MCP exposes prs.list, prs.get, prs.settings, prs.configure, prs.usage, prs.cancel, prs.rerun, and prs.promote. A claimed WorkOS agent cannot call prs.list or prs.get; production returns agent_capability_denied. Use a supported user session or profile credential for list, get, usage, cancel, rerun, promote, and dynamic-test settings. Deployment-watch read and update remain available to a claimed agent acting for a Workspace Owner. The server retains preview qualification, current-revision checks, idempotency and Run limits.
