Documentation Index
Fetch the complete documentation index at: https://docs.spurtest.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Spur GitHub App analyzes every pull request the moment it’s opened. It looks at the files changed and the actual code diff, then automatically generates a focused set of browser tests that cover the change. Spur also scans your existing test suite and triggers any relevant saved tests, so every PR gets both fresh, change-aware tests and proven regression coverage.Auto-generated tests
Spur reads the diff and generates tests targeting exactly what changed — uppercase handling, edge cases, new flows, etc.
Relevant existing tests
Spur scans your saved tests and runs the ones related to the changed area of your app.
Preview-aware
Spur picks up the preview deployment URL from your PR (e.g. Vercel) and runs tests against that build.
Re-trigger with context
@-mention Spur in a PR comment to re-run with extra context like “log in as an admin user.”
Looking for the YAML-based CI/CD setup instead? See the GitHub CI/CD integration — that flow runs your existing test plans on every PR via GitHub Actions. The GitHub Agent described here is a separate, AI-driven flow that generates tests on the fly.
How it works
Open a pull request
As soon as you open a PR, the Spur GitHub App reads the changed files, the diff, and the PR title and description to understand the change.

Spur comments on the PR
A comment from the Spur app appears on your PR with the set of tests it generated for the change. Each test targets a specific case Spur thinks is worth verifying — for a search-input change, that might be uppercase matching, accented characters, internal whitespace, and case-insensitive matching.

Existing tests are triggered too
Spur also searches your saved tests for ones that touch the same area of the app and kicks those off as part of the same PR run. In the comment, generated tests and existing tests are listed separately so you can tell them apart.

Reviewing a test run
Click any test in the Spur PR comment to open the full run on Spur. You get everything a normal Spur test run gives you:- The full list of steps the agent executed
- Screenshots at each step
- The deployment URL the test ran against
- Pass/fail status and failure reasons

Keeping a generated test
By default, generated tests are discarded after the PR run — they’re scoped to that PR and don’t pollute your suite. If a generated test is good enough that you want it to keep running on future PRs and as part of your test plans, save it:
For tests that came from your existing suite, the test result is identical to a normal Spur run — no extra step needed.
Re-triggering with extra context
You can ask Spur to re-analyze a PR and apply new context by @-mentioning the app in a PR comment.- Reacts to the comment to confirm it picked up the mention.
- Re-reads the PR diff and preview URL.
- Generates a fresh set of tests, applying your extra context (in the example above, logging in as admin instead of a normal user).
- Posts the new run back to the PR.

Setting default context
If you find yourself repeating the same context on every PR (“log in as admin,” “the staging env requires this header,” etc.), set it once as default context on the integration.Add default context
Find the Default context section. Enter any prerequisites or operational notes you want Spur to apply on every PR run — for example, admin credentials, normal user credentials, required feature flags, or UI quirks the agent should be aware of.

FAQ
Are generated tests saved automatically?
Are generated tests saved automatically?
No. Generated tests are discarded by default after the PR closes. Click Keep Test on any generated test to promote it into one of your suites.
How does Spur pick which existing tests to run?
How does Spur pick which existing tests to run?
Spur scans your saved tests and matches them against the area of the app that changed in the PR. Only tests Spur considers relevant to the diff are triggered — your full suite is not run on every PR.
What deployment URL does Spur run tests against?
What deployment URL does Spur run tests against?
Spur extracts the preview deployment URL from the PR automatically. Vercel preview deploys are supported out of the box; other providers that post a preview URL in PR comments also work.
Can I re-run tests after pushing new commits?
Can I re-run tests after pushing new commits?
Yes. Push new commits and @-mention Spur in a PR comment asking it to re-trigger. Spur will re-analyze the latest diff and preview URL.

