# Static testing

> Static Testing: Definition and Techniques. Canonical page: <https://zapple.tech/glossary/static-testing/>

Static testing finds defects by examining requirements, designs and code without running the software. It uses reviews done by people and static analysis done by tools. It catches problems such as ambiguous requirements, unreachable code and insecure patterns early, before a test could even run, but it cannot show how the system behaves.

## What counts as static testing?

Anything that finds defects without running the software. The [ISTQB Foundation Level syllabus](https://istqb.org/wp-content/uploads/2024/11/ISTQB_CTFL_Syllabus_v4.0.1.pdf) (version 4.0.1) says that in static testing the software under test does not need to be executed, and that code, specifications and architecture are evaluated through manual examination, such as reviews, or with a tool, such as static analysis.

The work products in scope are wider than code. You can review a requirement, a user story, a design or a test plan. That is why static testing sits early in the life cycle, before there is anything to run.

## Which techniques are there?

| Technique | What it finds | When it runs |
|:--|:--|:--|
| Requirements review | Ambiguity, contradictions, omissions, missing acceptance criteria | Before design starts |
| Design review | Poor modularization, inefficient database structures | Before or during build |
| Code review | Logic errors, unclear code, deviations from team standards | On every change |
| Linting | Style and standards deviations, simple mistakes | In the editor and in CI |
| Type checking | Mismatched types, undeclared or undefined variables | In the editor and in CI |
| Static analysis | Unreachable or duplicated code, excessive complexity | In CI, nightly or per change |
| Security scanning | Known vulnerability patterns in source code | In CI, on pull requests |

The syllabus lists typical defects that are easier or cheaper to find this way: requirements defects, design defects, certain coding defects such as undefined variables, unreachable code and excessive complexity, and deviations from standards.

## Which defects does static testing find that running tests cannot?

Three kinds. The first is defects in things you cannot execute: a contradictory requirement has no test to fail. The syllabus notes that static testing can be applied to non-executable work products, while dynamic testing can only be applied to executable ones.

The second is defects on paths that tests rarely reach. The syllabus says static testing may more easily detect defects on paths through the code that are rarely executed or hard to reach with dynamic testing. Error handling that no test triggers is a common example.

The third is qualities that do not depend on running code, such as maintainability. [OWASP](https://community.owasp.org/Source_Code_Analysis_Tools) adds that static analysis tools, also called SAST tools, scale well, can be run repeatedly as in continuous integration, and point developers to the problem code by file and line. OWASP also lists weaknesses, so read its page before you buy a scanner.

## What does static testing cost against finding the same defect later?

The argument is about where the cost sits. A review costs reader time on every change. A static analysis tool costs set-up and then runs for free, but its findings cost triage time, and a noisy tool teaches people to ignore it.

Compare that with a defect found later. A requirements error found in production means rework in design, code and tests. The syllabus says certain code defects can be detected with static analysis more efficiently than in dynamic testing, usually resulting in both fewer code defects and a lower overall development effort. Weigh review time against that, and start where reviews are cheapest: the requirements. To see which of these checks your pipeline already runs, our [audit and assessment](/services/audit-and-assessment/) service looks at tests, pipeline and release process.

Two practical limits. A review is only as good as the reviewers' attention; [Google's code review standard](https://google.github.io/eng-practices/review/reviewer/standard.html) frames its purpose as keeping the overall code health of the code base improving over time, which is a useful bar for what a reviewer should decide. And tools need a place to enforce results: [GitHub code scanning](https://docs.github.com/en/code-security/concepts/code-scanning/code-scanning) analyses a repository for vulnerabilities and coding errors and shows problems in the repository, and [SonarQube](https://docs.sonarsource.com/sonarqube-server/quality-standards-administration/managing-quality-gates/introduction-to-quality-gates) says its quality gate status can be used to fail a CI pipeline.

## Can static testing replace dynamic testing?

No. It cannot show how the system performs, how it handles real data or how components work together. The syllabus says the two complement each other, with defect types only one can find. For the full comparison, see [static and dynamic testing types](/blog/types-of-automation-testing/difference-between-static-and-dynamic-testing-types-in-software-testing/).

If your developers use AI tools, a checklist helps reviewers focus; our [AI code review checklist](/blog/types-of-automation-testing/ai-code-review-checklist/) lists what to look for. For tooling, see the [best unit testing tools](/blog/types-of-automation-testing/list-of-the-best-unit-automation-testing-tools/) and [CI/CD tools for automated tests](/blog/types-of-automation-testing/what-cicd-tools-to-use-for-automated-tests/).

## What does Zapple.Tech do about it?

If you are not sure which static checks your team is missing, start with the evidence. Zapple.Tech starts with a one-week QA audit of one product area. It looks at its tests, pipeline and release process, and ends in a written report on what is at risk and what to fix first, plus a pilot plan you can run with Zapple.Tech or without it. Read more on the [QA audit and assessment](/services/audit-and-assessment/) page.

Tell us about your pipeline in the form below.

## FAQ

### What is static testing?

Static testing is testing in which the software is not executed. Requirements, designs, code and other work products are examined by people, as in reviews, or by tools, as in static analysis. It finds defects directly, often earlier and at lower cost than running the system.

### What are the types of static testing?

The two families are reviews and static analysis. Reviews range from an informal read-through to a formal inspection and cover requirements, designs and code. Static analysis uses tools such as linters, type checkers and security scanners to find problems in code without running it.

### Is code review static testing?

Yes. A code review is a manual examination of code without executing it, so it counts as static testing. Reading a requirement or a design document for gaps counts too, and so does a tool-based scan that checks the same code automatically.

### What is the difference between static testing and static analysis?

Static analysis is one part of static testing. It is the tool-based part, which checks code or models automatically. Static testing also includes manual reviews of requirements, designs and code, which no tool replaces.

### Can static testing replace dynamic testing?

No. Static testing cannot show how the running system performs, how it handles real data or how its parts work together. The two find different defects and complement each other, so use both.

## Sources

- [ISTQB Certified Tester Foundation Level syllabus v4.0.1 (2024-09-15, newest edition read), chapter 3 Static Testing](https://istqb.org/wp-content/uploads/2024/11/ISTQB_CTFL_Syllabus_v4.0.1.pdf)
- [OWASP, Source Code Analysis Tools (current page, copyright 2026)](https://community.owasp.org/Source_Code_Analysis_Tools)
- [Google engineering practices, The Standard of Code Review (current docs)](https://google.github.io/eng-practices/review/reviewer/standard.html)
- [GitHub documentation, Code scanning (current docs)](https://docs.github.com/en/code-security/concepts/code-scanning/code-scanning)
- [SonarQube Server 2026.5 documentation, Understanding quality gates](https://docs.sonarsource.com/sonarqube-server/quality-standards-administration/managing-quality-gates/introduction-to-quality-gates)
