🛡️ Secure your IP with 100% Air-Gapped Labs & Signed NDAs
WhatsApp: +86 18928482768 | sales@pcbdesignlab.com

Summary

A risk-based method for functional test coverage: risk classes, weighted credit rules, fault insertion, test sequence, and when lower coverage is acceptable.

Functional test coverage is usually argued as a percentage, and the argument rarely settles anything. One engineer wants every function exercised on every unit, another points out that the schedule and the fixture budget will not carry it, and the number in the test plan becomes a compromise nobody can defend. The useful question is not what percentage is enough. It is which functions can fail in a way that matters, how each one is observed, and what evidence proves the test would catch it. This guide sets out a risk-based method: classify the functions, score coverage with explicit credit rules, prove the result with fault insertion, sequence the test so a failure stops it early, and decide deliberately when lower coverage is acceptable.

What enough coverage actually means

Coverage is a claim about detection, not effort. A test that powers a board and reads a current draw has high activity and low detection. A test that drives a signal through a connector, checks the response at a specified point, and compares it with a limit has lower activity and much higher detection. Only the second earns coverage, because a bad board can fail it.

Two conditions have to hold before a function counts as covered. The test must exercise the function through a path that includes the likely fault, and it must compare the result with a limit a bad board would miss. Without both, the function is observed, not tested.

Functional and structural coverage are not interchangeable

Structural test proves that the board is built as designed; functional test proves that the built board behaves as intended. IPC publishes standards for assembly and test, but the split between them is a product decision. A board can pass every structural check and still fail functionally, because a wrong firmware image or a reversed connector leaves the copper and the solder joints perfect.

Method What it proves What it cannot prove
In-circuit test Parts are present, values are within tolerance, nets are not open or shorted That the board performs its function
Boundary scan Digital interconnect between compliant devices Analog, power, and non-scan devices
AOI and X-ray Placement and solder joints Electrical behaviour under load
Functional test End-to-end behaviour against limits The root cause of a failure by itself
Built-in self-test On-board resources and some interfaces External wiring and system context

A functional test plan should start from the structural result rather than replace it. If in-circuit test already proves that every resistor is the right value, functional test can spend its time on behaviour. The two methods cover different failure modes, so their coverage numbers are reported separately.

Classify every function by risk

The first deliverable is a function list, not a test list. Write down what the product does in the language a customer would use, then group the functions by the consequence of failure. Coverage rules attach to the class, so the debate moves from one global percentage to decisions that can be defended one by one.

Risk class Criteria Coverage rule
Safety or regulated Failure can injure a user or breach a declared limit Every unit, end to end, with a recorded result
Mission critical The product cannot perform its main job Every unit, end to end
Core function Main feature the buyer pays for Every unit, at least one complete path
Supporting function Secondary feature with a workaround Every unit if the check is cheap, otherwise sample plus structural
Cosmetic or convenience No effect on the job the product does First article and periodic audit

Two rules keep the classification honest. A function cannot be downgraded to avoid an inconvenient test, and a function that shares a failure path with a higher class inherits the higher class. A status LED driven by the same port as a safety interlock is not cosmetic.

Axis 2100 camera board with fine-pitch processors, a coin cell, an RJ45 jack, and a ribbon connector

The board above shows why the function list follows the product, not the schematic sheet. One processor supports the image path, the network interface, and the status indicators, so a single fault can cross risk classes.

Calculating coverage without flattering the number

A single percentage hides the difference between a fully checked function and one that was only powered. A weighted score forces the team to state what each check proves. Multiply each function’s risk weight by the credit it earned, add the results, and divide by the sum of all weights.

Check performed Credit Why
Function driven end to end with a measured limit Full A bad board can fail the check
Function observed indirectly, such as a rail present without a load Partial Some faults are invisible
Board powered, no function exercised None Proves only that power reaches the board
Function covered by a different method, such as boundary scan Full for that method Reported in the structural total, not the functional one
Function not reachable with the current fixture None, with a note Makes the gap visible in the report

The weights are a management decision, and they should be written down. One workable scheme gives weights of five, three, two, and one to the safety, mission-critical, core, and supporting classes, and zero to cosmetic functions that are audited instead of tested. What matters is that every function has a weight and every check has a credit.

Report the weighted score next to the unweighted count, and list the functions that earned no credit. The count shows how much of the product was touched; the score shows how much of the risk was covered.

Fault insertion proves the test detects what it claims

Coverage calculated on paper is a hypothesis; fault insertion is the experiment. Introduce a fault the process could produce on a scrap board, and confirm that the test fails at the expected function. A test that passes a board with a missing part does not cover that part.

Fault to inject Safe method Expected test response
Missing component Build a sample without the part, or remove it from a scrap board Failure at the function that depends on it
Open trace Cut a trace on a scrap board Open reported at the net or the function
Short between nets Solder a bridge on a scrap board Failure without damage to the fixture
Wrong value Fit a part outside the stated tolerance Function misses its limit
Reversed polarized part Fit it backwards on a scrap board Power-on check stops the sequence
Unseated connector Leave the connector partly engaged Harness or interface check fails
Corrupt firmware Load an invalid image Boot check fails with a recorded code
Stuck sensor input Hold the line at a fixed level Plausibility check fails

Run the injection on a sample, never on a unit that will ship. Record which fault was injected against which check, and keep the record with the test program. When a new failure mode appears in the field, add it to the table and confirm the test catches it.

Sequence the test so failures stop it early

The order of checks decides how much damage a bad board can do. Power a shorted rail and the fault can spread; probe an analog input before the reference is stable and the result means nothing. Sequence the test from the supply outward, and decide in advance which failures stop the run.

Stage Check On failure
1. Unpowered Rail-to-rail and rail-to-ground resistance Stop before power is applied
2. Power-up Each rail within its stated window, current draw sane Stop, do not load the board
3. Reset and clock Reset released, clock present, boot completes Stop and record the stage
4. Communications Debug port, internal bus, stored identity Stop if the port is needed for later checks
5. Inputs and outputs Each channel driven and measured Record and continue through the block
6. Interfaces External connectors looped or simulated Record and continue
7. Calibration Stored constants written and read back Fail the unit, do not ship

Stop on anything that risks damage; continue on anything that only risks an incomplete result. Continuing through the input and interface blocks collects a full failure signature, which speeds repair and exposes repeated failures. Stopping at the first functional miss hides whether the board has one fault or five.

Lower coverage as a documented decision

Lower coverage is legitimate when the risk is genuinely lower or another stage carries the check. It is not legitimate when the only reason is that the fixture is hard to build. The difference is a written decision with a guardrail.

Condition Why it can be acceptable Guardrail
Mature design with a stable process Failure modes are known and structural test catches most of them Keep in-circuit test and trend the data
Low-severity failure No safety impact and a field replacement path exists Define the replacement path before launch
Downstream system test The next assembly stage exercises the function Confirm that the next stage really checks it
Low volume or high mix A dedicated fixture is hard to justify Sample functional test plus full structural test
Refurbished or repaired board The design is already proven in the field Full test on the first unit of each batch

Sampling is the weakest option, because it assumes the process is in control. If it is the only practical choice, pair it with structural test on every unit and a periodic audit that uses the full functional program. A sample that passes describes the days you looked.

Close the loop with first article and field returns

Coverage is meaningful only when tied to evidence from both ends of the product life. The first article proves the program runs on a good board and produces the expected result. Field returns prove that failures reaching customers are the ones the test should catch.

Evidence What to record How it changes coverage
First article Functions tested, limits, fixture and firmware revision Establishes the reference result for the build
Fault insertion record Fault, check, expected response, actual response Shows which checks are proven and which are assumed
Field return code Failure mode and the function it belongs to Adds a check when a returned mode has no matching check
Escape analysis Which test stage should have caught the escape Raises the credit or adds a stage where detection failed

The steps in this guide to first article inspection for recovered boards show how to capture that reference result when the design is a rebuild rather than a new product. On the repair side, the fixture practices in this guide to functional test fixtures for legacy boards keep the program and the hardware matched as units come back. The trade-offs in this guide to PCB test cost are easier to argue with a function list and a fault insertion record than with a single percentage.

Frequently Asked Questions

What percentage of functional coverage should we target?

There is no single number that fits every product. Set coverage rules per risk class instead, with every safety and mission-critical function tested on every unit, and let supporting functions use sampling or structural coverage. Report the weighted score and the list of uncovered functions so the target is a decision, not a slogan.

Can structural test replace functional test?

No. Structural test proves the board is built correctly, but it cannot prove that firmware boots, that a connector pinout matches the cable, or that an analog chain meets its limit. It can reduce what functional test has to repeat, which is a good reason to run both rather than to drop one.

How many faults should we inject?

Enough to cover every failure mode the process can produce for the high-risk functions, plus the modes seen in field returns. Start with one fault per high-risk function, add the modes that have escaped before, and repeat the set whenever the test program or the assembly changes.

Is sampling acceptable for a mature product?

Only with a guardrail. Pair sample functional test with structural test on every unit, keep the full program available for audits and returns, and define what would trigger a return to full testing. A mature product can still drift when a supplier or a process changes.

Conclusion

  • Define coverage as detection of specific faults, not as the share of functions that were powered.
  • Classify functions by risk, then attach a coverage rule and a weight to each class.
  • Score with explicit credit rules, and prove the score with fault insertion on a scrap board.
  • Sequence the test from the supply outward, and revisit coverage whenever returns reveal an escape.

Get Weekly PCB Engineering Insights!

Practical insights on PCB design, PCB reverse engineering, IC unlocking and hardware development from PCBDesign Lab.

One email each week. Unsubscribe anytime. Read our privacy policy for more info.

Get Started

PCBDesign Lab Has Helped 100+ Customers Build Their Products

Free Consulting