One of the challenges of software testing is deciding what to test. We spend considerable time developing testing frameworks and writing test scripts. But before that work begins, someone needs to decide which behaviors matter and what evidence would convince us that those behaviors work as expected.
User stories offer a good starting point. They describe what people expect software to do, but rarely capture everything necessary to satisfy those expectations. How do we move from a short statement of intent to a useful collection of behavioral expectations?
I’ve been working with a simple approach I call ERI: Explicit, Required, and Implied. The idea is to examine each user story from three perspectives, looking for hidden and implied behaviors that deserve further attention via test cases.
Start with a user story
Consider this example from an imaginary task management application:
As a task manager, I want to mark a task completed so that I can distinguish completed work from active work.
We could immediately design an API operation such as PUT /tasks/{id}/status and write a test that sends a request and checks for a successful HTTP response. But what have we learned? A successful response tells us something about the interaction, but it doesn’t necessarily establish that the system satisfied the original expectation. There is more here than we might see upon first glance. In fact, I think there are several tests “hidden” in this simple user story.
Three questions
Before writing tests, I find it useful to examine the story itself with a more critical or curious view. To do that, I ask three questions:
Explicit: What behaviors does the story directly describe?
Required: What additional behaviors must exist for the stated outcome to be satisfied?
Implied: What other behaviors might reasonably be expected, given the story and its context?
Each question offers a different perspective on the behavior of the system. Let’s apply them to our task management example.
Explicit behaviors
Explicit behaviors appear directly in the story. For example, our user story gives us this behavioral claim:
A task manager can mark a task completed.
Notice that, for now, we’ve avoided mentioning HTTP methods, resource paths, or implementation details. We’re interested in understanding what the story claims about the system before deciding how that claim will be implemented or verified.
Required behaviors
Next, we look for behaviors or conditions necessary to satisfy the explicit expectation. For example, the system needs to identify the task being completed.
The system can identify the task targeted for completion.
We also need some way to determine whether the operation succeeded.
The completed state can be observed after the operation.
These expectations carry consequences for API design and testing. What happens when the requested task doesn’t exist? How does the system represent successful completion? Can a client retrieve the resulting record and validate its state? The required category helps identify dependencies and supporting behaviors that deserve attention.
Implied behaviors
The third question explores expectations suggested by the story and its context. For example, marking a task completed raises questions about how long that completed state should remain in effect.
A completed task remains completed until another authorized action changes its state.
We might also wonder whether completed tasks can be reopened or whether unsupported status changes should be rejected. These are reasonable questions, but the original user story doesn’t establish their answers.
An implied behavior is a candidate for investigation. It may reflect a domain rule, a common convention, or an assumption requiring confirmation. Applying ERI to a user story helps expose these questions before they become hidden assumptions in the implementation.
From ERI to behavioral claims
Our examination of the user story has produced several candidate behaviors worth considering for testing.
Here we’ve expanded a short user story into behavioral claims for review with domain experts, developers, and testers. Some of these may become formal requirements. Others may be rejected or deferred. The important point is that we’ve made these expectations visible.
The distinction between required and implied matters. Required behaviors follow from the stated expectation, while implied behaviors represent plausible expectations that still need confirmation.
Choosing what to test
Discovering candidate behaviors is only part of the work. We still need to decide which claims deserve verification and what evidence would support them.
Consider our central claim: A task manager can mark a task completed. What observations would convince us that this behavior works?
We might want evidence that:
The target task exists and begins in an active state.
The completion operation succeeds.
A subsequent retrieval confirms the completed state.
These observations provide stronger evidence than checking the HTTP response code alone. They also illustrate the distinction between behavioral claims and test assertions. A behavioral claim describes an expectation about the system. An assertion describes an observation that helps establish whether the expectation has been satisfied.
A useful habit
One of the things I like about ERI is how little machinery it requires. You can apply it during a design conversation, while reviewing a user story, or before writing an automated test.
The process begins with identifying the behaviors stated in the story (explicit). From there, we examine the conditions necessary to support those behaviors (required) and explore additional expectations suggested by the surrounding context (implied). The resulting collection of behavioral claims provides a starting point for deciding what evidence to collect and which tests to write.
Some assumptions will require further investigation before we’re ready to write tests. ERI won’t eliminate ambiguity or guarantee complete coverage, but it provides a repeatable way to expose behavioral expectations and decide which ones deserve verification.
Every user story has more to tell us. ERI helps us find it.

