Skip to main content
Your coding agent can read the diff and change your application. The project’s TestSprite agent uses requirements, attachments and a test environment to propose changes to the test suite. The CLI connects the two, with a review step before a proposed test becomes part of the suite.
Does a saved test cover the change?
Already coveredSelect the matching test.
Missing coverageReview the agent’s plan and apply it when ready.
Run the saved test
PassedReport the verdict.
FailedInspect the evidence. Fix the app or revise the test, then rerun.

Check for coverage

Set PROJECT_ID to the ID from testsprite project list, then list the saved cases.
Set TEST_ID to the id of a likely match and read its steps.
If the saved case already checks the behavior you changed, run it against a build containing the change.
To verify the whole suite, use testsprite run --project <project-id> --env staging --wait. If the wait times out, continue waiting with the run ID.

Ask for missing coverage

In your Git repository, state an observable expectation. Attach the diff with --diff or a specification with --file <path>. The project’s agent can explore a reachable frontend deployment. For a local-only app, give it the diff or requirements to plan from, then run the saved frontend tests through a tunnel. Local apps.
Review the proposed actions and assertions against the requirement. Use reject with feedback if the plan needs a change. Once the plan is right, apply it and run the test IDs in applied.tests. Creating tests.

Diagnose a failure

Set RESULT_ID to the failed case’s resultId from the run’s results[]. Read the exact result and, if needed, keep the evidence locally.
Compare the expected behavior with the recorded steps or API output. Fix a product defect in the application and rerun the saved test against the updated build. Send an incorrect test expectation back to the project’s agent, then review the correction before applying it. Reading results.

Quickstart

Follow the loop with a deployed app.

Coding agent integration

Install the workflow in your coding agent.