Unit, integration, system and acceptance testing explained from zero, followed through one real feature, plus the test pyramid and where manual testers fit.
beginner Mobile & web
Short on time? Switch to the quick version.
Your progress
Think about how a car is made. Each part is checked on its own first: does this brake pad have the right thickness? Then parts are put together and checked as a group: does the brake pedal actually squeeze the pads? Then the finished car goes on a test track. Finally, a customer takes it for a test drive and decides whether to buy it.
Four checks, four different questions, four different people. Software testing works exactly the same way, and these stages are called the levels of testing.
Part Not started
The four levels at a glance
A test levelTest levelHow much of the product is under test: unit, integration, system or acceptance.Open in glossary → is a group of tests aimed at one size of “thing”: a tiny piece of code, a connection between pieces, the whole product, or the product in the hands of the people who asked for it. System and acceptance testing look at the same whole product; what changes is who is asking: the team (“does it work as specified?”) or the people it was built for (“is it what we need?”).
Each level catches different bugs. A perfect brake pad is useless if the pedal isn’t connected to it, and a car that passes every factory check can still be rejected by a customer who needed seven seats.
Check this part
Which test level checks the whole app, end to end?
System testing checks the complete app, like the finished car on the test track.
A car passes every factory check, but the customer needed seven seats. Which level catches that?
Acceptance testing asks whether the product meets the real need, like the customer's test drive.
Unit, integration, system and acceptance: four sizes of thing to test, each catching different bugs.
Part Not started
Unit and integration testing
Unit testing
Developers test the smallest pieces of code, like the function that calculates a 10% discount, in isolation. These tests run in milliseconds and there are usually thousands of them. They find logic mistakes early.
What: the smallest testable piece of code, a “unit”: usually one function, method or class, tested in isolation. Anything it depends on (the database, the network, the clock) is replaced with a fake, so the test checks only that piece’s logic.
Who: developers, usually while writing the code. Unit tests are code themselves and run automatically on every change.
Here is what a unit test for a discount function might look like in JavaScript. You don’t need to write these, but it helps to recognize one:
test('SAVE10 takes 10% off the order', () => { expect(calculateDiscount(40.0, 'SAVE10')).toBe(4.0);});test('an expired code gives no discount', () => { expect(calculateDiscount(40.0, 'SUMMER23')).toBe(0);});
Each test runs in a few milliseconds. A large app can have thousands, and they all run every time a developer pushes a change.
Integration testing
What: the connections between pieces. Two parts can each work perfectly on their own and still fail together: one sends a price as "4.00" (text), the other expects 4.0 (a number).
Component integration testing: connections inside one system. The checkout screen and the cart module; the cart service and the coupon service, both built by your team.
System integration testing: connections between your system and other systems. Your app and the payment provider, a maps service, an airline’s booking system, a bank.
A related, modern technique that is good to recognize is the contract test: the two sides of an API agree on a “contract” (field names, types, status codes), and automated tests check that neither side breaks it. Contract tests are popular when many teams own many small services.
A developer checks that the function formatPrice(4.5) returns '€4.50'. Which level is this?
One small function, tested on its own, by a developer: that is a unit test.
The app shows an order as 'Paid', but the order service never received the payment confirmation from the payment service. Which level is best at catching this?
The bug lives in the handover between two services. Integration testing focuses exactly on those connections.
Developers test small pieces of code on their own; integration testing checks that the pieces work together.
What: the complete, integrated product, tested end to end on an environment as close to the real one as possible. You test it the way users use it: through the screens, on real devices and browsers, with realistic data.
Who: mainly the test team: manual testers and automation engineers.
What it covers:
Functional behavior: complete user journeys, business rules, error handling. Example: browse, add to cart, apply coupon, pay, get a receipt.
Non-functional qualities: speed, security, usability, accessibility, compatibility across devices and browsers. See Types of Testing for these.
What it finds: broken end-to-end flows, problems that only appear when everything is connected, device- and browser-specific bugs, confusing UI, slow screens.
Backups restore, monitoring alerts fire, support can look up customers
Some projects also have contractual acceptance (does it meet the contract?) and regulatory acceptance (does it meet laws, for example for banking or health apps).
The alpha and beta rows above follow everyday team talk (staff using their own product is also called dogfooding). ISTQB draws the line slightly differently: alpha happens at the company’s own site or test environment, beta in the users’ own environment. In both cases the testers are not the people who built the product.
What it finds: misunderstood business rules, workflows that are technically correct but awkward in real life, missing features, “this isn’t what we meant”.
Check this part
Where do most manual testers spend most of their time?
Manual testers mostly test the complete app end to end on real devices and browsers: system testing. They also support acceptance testing.
Who usually performs user acceptance testing (UAT)?
UAT is done by the people the software is for. They decide whether it meets their real needs; testers usually support them.
Before launch, 300 company employees use the new banking app in daily life and report problems. What is this?
In everyday team talk, staff trying the product before release is alpha testing (also called dogfooding). Outside users trying it in their own environment would be beta testing.
System testing checks the whole app end to end; acceptance testing asks whether it meets the real need.
Part Not started
One feature through all four levels
Take a food delivery app’s “Apply a coupon at checkout”: SAVE10 gives 10% off orders of €20 or more; one coupon per order.
Unit: the developer’s test catches “more than €20” instead of “€20 or more”, so a €20.00 order got no discount.
Integration: the coupon service sends the discount as text ("4.00") and the cart treats it as zero.
System: a manual tester finds the discount shown in the cart but missing on the payment screen.
Acceptance: the marketing team points out that discounts must always exclude alcohol, a rule nobody wrote down.
Let’s follow a single feature, “Apply a coupon at checkout” in a food delivery app, through every level. The rule: SAVE10 gives 10% off orders of €20 or more; one coupon per order.
The unit: the calculateDiscount function.
Who: the developer who wrote it.
Example checks: €40 order with SAVE10 gives €4.00 off. €19.99 gives €0 (below minimum). €20.00 exactly gives €2.00 off (the boundary). An unknown code gives €0.
Typical bug caught: the developer wrote “more than €20” instead of “€20 or more”, so a €20.00 order gets no discount.
The connections: the app sends the code to the cart API; the cart service asks the coupon service whether the code is valid; the coupon service marks it as used.
Who: developers and QA engineers, often with Postman or automated API tests.
Typical bug caught: the discount is shown in the cart but missing on the payment screen, or it survives after the cart drops below €20. See Shopping Cart and Checkout for more.
The real need: does the coupon feature support the business’s actual promotions?
Who: the marketing team and product owner (UAT), supported by testers.
Example checks: run the real “Friday SAVE10” campaign on a pre-release build. Does the discount show in the way customers will understand? Can marketing see how many codes were used?
Typical finding: “We always exclude alcohol from discounts, and this applies 10% to wine too.” Every earlier level passed, because nobody wrote that rule down.
Notice how each level found a bug the others would have missed (or found much later and more expensively).
Check this part
In the coupon example, which level found that discounts must exclude alcohol?
Every earlier level passed, because nobody wrote the rule down. Only the people who run the promotions knew it.
Why test one feature at several levels?
Each level asks a different question, so each finds bugs the others would miss, or find much later and more expensively.
Follow a coupon feature through all four levels and see each level catch a bug the others would miss.
The test pyramid is a picture of how many tests a healthy team has at each level. The idea comes from automation: the lower the level, the faster, cheaper and more stable the test, so you want lots of them. The higher the level, the slower and more fragile the test, so you keep fewer, carefully chosen ones.
Bottom (unit): thousands of tests, seconds to run them all.
Middle (integration / API): hundreds of tests, minutes.
Above it: manual exploratory testing and acceptance testing, which no automated layer replaces.
Why this matters to a manual tester
Most manual testers work at the system level and support acceptance testing. So why learn the others?
You avoid duplicate work. If developers already have unit tests for every discount rule, you can spend less time on calculation combinations and more on the full journey.
You write better bug reports. Saying “the API returns the right total but the app shows the old one” points the developer straight to the right place.
You can test earlier. API endpoints often exist before the screens do; testing them in Postman is integration testing you can start days earlier.
You speak the team’s language in planning, reviews and interviews.
Check this part
What does the test pyramid recommend?
Lower-level tests are faster, cheaper and more stable, so you want many of them. The upside-down shape is the 'ice-cream cone' anti-pattern.
Why should a manual tester know what the unit tests already cover?
If every discount rule already has unit tests, you can spend less time on calculation combinations and more on the full journey.
Many fast unit tests, fewer integration tests, and only a few slow end-to-end tests at the top.
The rest of this lesson is in Bugwise Pro
The last parts of every lesson are part of Bugwise Pro. Sign in to unlock them if you have it.
A level says how much of the product is under test and whose question is being answered (the developer’s, the team’s, the customer’s). A type says what quality you are checking.
See Types of Testing for the full map, and SDLC and STLC for how each level pairs with a design phase in the V-model.
Check this part
What does a test level describe?
A level is about how much is under test (a piece of code, connections, the whole system) and who is asking (at acceptance level: the people it was built for). A type is about the quality you check.
Can you do performance testing at unit level?
You can ask how fast one function is (unit level) or how fast the whole checkout is (system level).
A level is how much of the product is under test; a type is what quality you check. They combine.
The rest of this lesson is in Bugwise Pro
The last parts of every lesson are part of Bugwise Pro. Sign in to unlock them if you have it.
Click each level to see who does it, an example from the coupon feature, typical tools, and how speed and cost change as you go up.
The test pyramid
Click a level. Lots of small, fast tests at the bottom; few big, slow ones at the top.
↑ slower, costlier, fewer↓ faster, cheaper, more
Unit testing
Who: Developers, while writing the code
Finds: Logic mistakes in one small piece: wrong math, off-by-one errors, unhandled empty values.
Coupon example: calculateDiscount(40.00, "SAVE10") returns 4.00, and an expired code returns 0.
Typical tools: JUnit (Android/Java), XCTest (iOS), Jest or Vitest (web), pytest (Python)
Speed
slowfast
Cost per test
cheapexpensive
How many: Thousands
For a manual tester: You will not usually write them, but knowing what they cover tells you where to focus your own testing.
Which level is this test?
Ten realistic tests from shopping, banking, fitness and travel apps. Pick the level for each one.
Which level is this test?
Read each test and pick its level. You get an explanation either way.
Test 1 of 10Score: 0
On the staging build, you log in to the food delivery app, add two pizzas, apply a coupon, pay with a test card and get the order confirmation.
Practice: one feature, four levels
A fitness app is adding a workout streak:
The app shows how many days in a row you have logged a workout. The streak increases by 1 when you log at least one workout on a calendar day, and resets to 0 if you miss a whole day. Streaks are synced to your account so they show on every device. The fitness coaching team wants to use streaks to send motivational messages.
For each level, write one test idea and who would do it.
Show a sample answer
Unit (developer): the streak function returns 3 for workouts on Monday, Tuesday and Wednesday; returns 0 if Thursday is missed; counts two workouts on the same day only once.
Integration (developer or QA engineer): after logging a workout, the app sends it to the sync API and the API returns the updated streak; a second device fetching the profile gets the same number.
System (manual tester): on a real phone, log workouts on three days (change the device date or use test data), check the streak shows 3, skip a day and check it resets; test across time zones and right around midnight; log on Android and check the streak on iPhone.
Acceptance (coaching team, UAT): the coaching team tries the feature with real-looking accounts and confirms the streak numbers make sense for their motivational messages, for example that “rest days” in a training plan should not break a streak (a rule nobody wrote down yet).
Key takeaways
There are four test levels: unit (one piece of code), integration (pieces working together), system (the whole app end to end) and acceptance (does it meet the real need?).
Developers own unit tests; developers and QA test integrations and APIs; the test team owns system testing; business users and real users own acceptance.
Integration covers connections inside your system (component integration) and with outside systems (system integration).
Acceptance includes UAT, alpha and beta testing, and operational acceptance. Its goal is confidence and a go/no-go decision.
The test pyramid: many fast unit tests, fewer integration tests, few end-to-end tests. Avoid the ice-cream cone.
Manual testers mostly work at system level and support acceptance testing, but understanding the lower levels helps you test smarter and report bugs precisely.
Finished this page?Nice work, this page is complete!
Mark it as done to track your progress. It's saved in this browser, no account needed.