We use analytics to count visits and form use. It is on unless you reject it. We show no ads on this site.

Glossary

Static testing

Published . Last updated . Published by Zapple.Tech, founded by the founders of CodeceptJS and Codeception, open-source testing frameworks.

Also called
static software testing
Published
Updated
Definition

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 (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.

Static testing: requirements, design and code are reviewed and analysed before the software runs; dynamic testing checks the running system; each finds defect types the other cannot

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 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 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 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 analyses a repository for vulnerabilities and coding errors and shows problems in the repository, and SonarQube 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.

If your developers use AI tools, a checklist helps reviewers focus; our AI code review checklist lists what to look for. For tooling, see the best unit testing tools and CI/CD tools 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 page.

Tell us about your pipeline in the form below.

  • QA audit

    A QA audit is a structured review of how a team tests: its tests, pipeline and release process. It ends in findings that show where quality is at risk and what to change first. Our QA audit services take about one week for one product area and end in a written report and a pilot plan.

  • Quality gate

    Quality gates are conditions a code change must meet before it moves to the next stage, such as a merge or a release. Passing tests, no new serious findings and an approving review are typical. A gate turns "ready" from an opinion into a rule your pipeline can enforce, and an agreed override stops your team switching it off.

  • Mutation testing

    Mutation testing measures how good a test suite is by making small deliberate changes, called mutants, to the code and running the tests against each one. A failing test kills the mutant; a surviving mutant marks behavior the tests do not check. Unlike code coverage, the mutation score shows whether tests would notice a change, not only which lines ran.

All terms in the glossary

QA audit

QA audit and assessment

QA audit services: a one-week review of your tests, pipeline and release process, with a written report on what is at risk and what to fix first.

See the service

Questions about static testing

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.

Request a QA audit quote

Tell us what you ship and what worries you.

What happens after you send this

  1. You send the form: your situation and what you need tested, then your name and work email.
  2. Within one business day, we reply with a suggested first step, its scope, timeline and a quote.
  • Fixed scope
  • You decide after each step
  • The tests live in your repository
  • An NDA signed before access

“They helped us to close the positions and consult our team how to proceed further. High-quality quick feedbacks with the deep checking of the required tasks, professional approach, great understanding of the company's technologies and product, detailed reports.”

Kristina Lavrentieva, Manager at keepgo.com, Israel
  • Rated 4.9 out of 5 on Clutch, from 7 client reviews
  • 42 completed test automation and infrastructure projects
  • Founded by the founders of CodeceptJS and Codeception, open-source testing frameworks

Request a QA audit quote

    What is closest to your situation?
    Optional. The product, the platforms, how often you release, what broke last.

    You decide after our reply whether to go ahead.

    Prefer to talk first? Book a call

    One-week QA audit · written report

    Request a QA audit quote