Skip to content
Writing

Quality Engineering · Oct 25, 2026

From Pull Request Diff to Testable Impact

Building Repository Intelligence for QA

By Aref Farahani6 min read

The ticket described a small change. The pull request showed exactly which files had been modified.

But neither answered the question I actually needed to answer as a QA engineer:

What should I test beyond the expected behavior?

This is a recurring problem in software testing. A diff describes code changes, but a test strategy requires an estimate of their possible impact. The distance between those two is where much of QA’s investigative work happens.

We trace shared components, search for API consumers, review related issues, inspect previous regressions, ask developers for context, and use our knowledge of the product. In a mature system—especially one split across frontend and backend repositories—this work can take longer than testing the original change.

After encountering this pattern repeatedly while working in QA since 2014, I started building a Repository Intelligence Tool for change impact analysis.

Its purpose is not to predict bugs or replace QA judgment. Its purpose is narrower and more practical:

Use repository evidence to identify plausible impact paths, explain why they matter, and help QA decide where to investigate first.

Why a diff is not an impact analysis

A pull request diff is optimized for reviewing modifications. It tells us which lines, files, and symbols changed.

Change impact analysis asks a different set of questions:

  • Which modules consume the changed code?
  • Which user flows reach those modules?
  • Did an API contract, route, or response shape change?
  • Are there callers in another repository?
  • Does Git history reveal related fixes or recurring regressions?
  • Which findings are directly supported, and which are only hypotheses?

The changed files are therefore the starting nodes—not the complete regression surface.

How the tool builds an evidence model

The tool analyzes a pull request together with its surrounding repository context. For the environments I am currently targeting—TypeScript frontend applications, Python/FastAPI services, and multi-repository systems—the analysis uses several evidence types.

1. Structural evidence

This includes imports, exports, function calls, hooks, components, service usage, route registration, and other relationships that can be derived from the code structure.

Structural evidence helps answer questions such as: “Which components consume this hook?” or “Where is this service called?”

2. Contract evidence

The tool connects backend routes and request/response behavior with known frontend consumers where those relationships can be identified.

This is particularly useful when a small backend change may influence several screens, workflows, or repositories through the same API contract.

3. Historical evidence

Commits, pull request context, linked issues, and relevant Git history can explain why code exists and whether similar areas have changed together before.

Historical proximity does not prove runtime impact, but it can provide useful supporting context—especially when the structural relationship is incomplete.

4. Contextual evidence

The ticket and pull request description provide intent: what behavior was expected to change and why.

Intent matters because two technically similar code changes may require very different test priorities depending on the product behavior involved.

These evidence sources are combined, but they are not treated as equally strong. A direct consumer relationship should carry more confidence than a keyword match or historical association.

From technical evidence to QA decisions

Raw dependency data is not yet useful to a tester. It needs to be translated into decisions.

The tool currently organizes the analysis into four outputs.

What Meaningfully Changed

This separates functional changes from implementation noise.

A large refactor may modify many files without changing product behavior. Conversely, a one-line contract change may affect several user flows. File count alone is therefore a poor measure of testing scope.

The summary focuses on observable behavior, interfaces, state transitions, validation rules, and data flow where they can be inferred from the change.

Potential Impact and Regression Surface

The tool follows supported relationships outward from the changed code to identify possible consumers and affected flows.

The result is not presented as “these areas will break.” It is presented as a set of impact hypotheses, each accompanied by the evidence that produced it.

Focused QA Checklist

The checklist is derived from the identified change and impact paths—not generated from a generic testing template.

For example, if an endpoint used to download a transaction receipt changes, a grounded checklist might include:

  • Verify each transaction type that calls the endpoint.
  • Check authorized, unauthorized, and expired-session behavior.
  • Validate the returned file type, filename, and content.
  • Confirm error handling for missing or unavailable receipts.
  • Test every identified UI consumer rather than only the screen mentioned in the ticket.

Each scenario should be traceable to a behavior change, a known consumer, a contract boundary, or a relevant risk.

Traceable Evidence

Every important finding should show its basis where evidence is available: an import, call site, registered route, API consumer, related commit, or issue reference.

This allows QA to verify the reasoning instead of accepting an opaque recommendation.

Without traceable evidence, an impact report may sound convincing while remaining difficult to trust.

Risk and confidence must remain separate

One of the most important design decisions was to model risk and confidence independently.

They answer different questions.

  • Risk: If the suspected area is affected, how severe could the consequence be?
  • Confidence: How strong is the available evidence connecting that area to the change?

Consider two findings:

  • A payment flow has a possible indirect relationship to the changed service. The potential impact is high, but the supporting evidence is weak.
  • A secondary UI screen directly imports the changed component. The relationship is clear, but the product impact is limited.

Treating these findings as equivalent creates noise. Separating the two signals supports more practical decisions:

RiskConfidencePractical QA response
HighHighPrioritize for regression testing.
HighLowPerform a targeted exploratory or sanity check.
LowHighVerify if time permits or include in focused regression.
LowLowRecord as a hypothesis; avoid expanding scope without more evidence.

This is not a universal formula. Business context, usage frequency, detectability, and production exposure still belong in the final assessment. The matrix simply makes uncertainty visible instead of hiding it behind a single score.

What repository evidence cannot tell us

Static relationships and Git history provide valuable signals, but they do not describe the entire running system.

The analysis may miss:

  • Runtime configuration and feature flags
  • Dynamically resolved dependencies
  • External integrations outside the analyzed repositories
  • Production data conditions
  • Unwritten domain rules
  • Current business priorities and customer exposure

For this reason, the output should support—not replace—developer input, observability, exploratory testing, and QA’s product knowledge.

The intended workflow is:

  1. Use the tool to establish an evidence-backed starting scope.
  2. Review high-risk or high-confidence findings.
  3. Add runtime and business context that is not present in the repository.
  4. Convert the combined view into the final test strategy.
  5. Feed incorrect or missing relationships back into the analysis process.

That last step matters. A useful system should not only produce recommendations; it should also make them reviewable and correctable.

What I’m testing next

The concept is now working across frontend and backend repositories, including cross-repository analysis. The next challenge is validating whether its findings consistently improve real QA decisions—not simply whether the analysis looks technically impressive.

Was this article useful?