A QA agent can generate tests. But which tests should it create, where should they live, and what should happen to them after the run?
The workflow needs to connect business requirements to existing coverage, choose the right checks for each change, run them and maintain useful regression tests afterwards.
Otherwise, every change adds another set of tests while the suite becomes slower and harder to trust.

Choose the test that answers the question
Consider an illustrative pricing change. Enterprise customers should receive a 20% discount. Checkout and the final invoice should agree.
Different tests establish different things.
| Test | What it checks in this example |
|---|---|
| Unit test | The pricing function calculates the correct discount |
| UI test | Checkout displays the amount and handles the relevant interface states |
| Integration test | The API and invoice worker exchange and apply the pricing data correctly |
| End-to-end test | A customer completes checkout and receives the correct invoice across the running system |
These categories can overlap. A browser-based UI test can also be end-to-end if it exercises the real backend and downstream services.
The useful question is which boundary the test actually covers. Mocking the invoice worker does not verify that the real worker produces the right invoice.
Keep tests with the right owner
Each repository can own the tests for its behaviour.
Backend unit and service-level integration tests can live with the backend code. Frontend component and UI tests can live with the frontend.
Cross-service integration and end-to-end tests may belong in a separate integration repository when they need a shared environment and independent ownership.
Backend repository
Pricing unit tests
API and database integration tests
Frontend repository
Component and UI tests
Integration repository
Checkout-to-invoice checks
Cross-service customer journeys
This is one possible layout. A monorepo can keep the same responsibilities in separate directories.
A separate test repository still needs an owner, runnable setup and a record of which application revisions it tested.
Every change needs a coverage decision
Before writing another test, QA should inspect what already exists.
For the pricing change, it may update an existing calculation test and add one missing API-to-worker check. It may also run an existing checkout journey without creating another one.
Start with focused checks that give fast, useful feedback. Expand across the affected boundaries. When the impact is uncertain, widen verification rather than assuming the edited files describe the whole risk.
Keep the broader CI and release checks your team requires.
Our change impact guide explains how to connect those boundaries to test selection.
Decide what becomes permanent coverage
A check used during investigation does not automatically need to become a permanent test.
After the change, decide whether to keep it as regression coverage, merge it into an existing test, retain it as reproduction evidence or discard it as temporary work.
Promotion means making a useful check durable, owned and repeatable. It does not mean moving every unit test into an end-to-end suite.
If a calculation test catches the rule precisely, keep that fast feedback. Add an integration test when there is a separate risk at the service boundary.
Each retained test should have a reason.
Keep the context needed to maintain it
Connect the test to its business rule, affected workflow, owning repository, fixtures and execution requirements.
Record each run separately with its code revisions, environment, outcome and evidence.
That lets the next agent understand both what should happen and what actually happened last time.
If the approved discount changes, update the expectation with that decision. If the implementation is wrong, send the failure back for correction. Do not rewrite the assertion merely to make the test pass.
The QA correction-loop guide covers that handoff and rerun.
Review the coverage as the product evolves
Broken fixtures need repair. Intermittent failures need investigation. Duplicate checks can be consolidated. Obsolete tests can be retired after reviewing what coverage remains.
In Prinevo’s workflow, shared context informs what needs testing, QA validates the change in a sandbox, and findings return to implementation. Useful checks should remain available for subsequent changes.
Put this into practice with Prinevo
Can your team see why the test exists, where it lives, what it verified and who maintains it?
When evaluating that workflow, follow one scenario from requirement through execution, correction and regression coverage.
Walk through Prinevo’s QA workflow on a representative change