Ask two different questions
The unit question is which code and dependencies the check exercises. The functional question is which required behavior it verifies. A discount function tested with controlled inputs can answer both. This distinction prevents teams from organizing test plans around categories that appear mutually exclusive but actually describe different dimensions.
A functional requirement may also need a wider check. A customer must be able to cancel a subscription through the account screen. A direct cancellation-rule test verifies only part of that promise. Navigation, authorization, request handling, and confirmation can require additional evidence across the assembled application.
Turn requirements into explicit outcomes
Write acceptance examples with a starting state, action, and result. For cancellation, state whether access ends immediately or at the billing boundary. Use that expectation in isolated rule tests and selected workflow checks. A vague requirement such as cancellation works cannot support a precise assertion in either layer.
Separate nonfunctional concerns such as response time and accessibility from the functional outcome where useful, while recognizing that one journey may gather several kinds of evidence. A successful cancellation response does not establish acceptable performance or an understandable interface. Name each claim and the check that supports it.
Avoid redundant coverage plans
Use unit tests for many rule variations and workflow tests for the user's ability to invoke the behavior. Do not duplicate every functional example in every layer. Choose additional checks when the wider boundary introduces a distinct risk such as missing authorization or an incorrect request payload from the screen.
Review escaped defects by the missing claim, not by a fixed label. If an isolated rule is correct but the screen sends the wrong identifier, more arithmetic tests will not help. Add evidence at the connection that failed and keep the requirement linked to both relevant layers in the coverage map.
Working sheet
| Check | Execution scope | Functional claim |
|---|---|---|
| Discount function | Unit | Correct discount rule |
| Cancellation endpoint | Integration | Authorized cancellation |
| Account journey | End-to-end | User can cancel |
| Load scenario | System performance | Separate timing requirement |
Questions about unit testing vs. functional testing
Can a unit test be functional?
Yes. It can verify a functional rule at an isolated boundary.
Does functional testing require a browser?
No. Functional behavior can be checked through functions, APIs, or interfaces depending on the requirement.
How should I use the working sheet?
Download the CSV and replace the sample rows with evidence from your repository. Record a clear acceptance check and an owner for each item. Keep unresolved assumptions visible rather than treating the example as a completed assessment.
Sources and further reading
Examples are illustrative. They are not customer results, security guarantees, or a substitute for checking the documentation for your installed version.
