esp32_test_plan
Skill79 starsChanged 8 months agoMITView on GitHub
Generate a structured test plan for ESP32 firmware changes across all testing layers.
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- esp32_arch_reviewSkill
- esp32_crash_reviewSkill
- esp32_log_triageSkill
- esp32_pin_auditSkill
- feature_contractSkill
- esp32_hardware_checkSkill
- pr_prepareSkill
- repo_scoutSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
After an implementation contract is accepted.
- Distinctive: line 14
When adding test coverage to existing code.
- Distinctive: line 45
Test data or configuration.
- Very specific: line 57
Use the template at missions/templates/test_plan_template.md:
- Distinctive: line 101
Every implementation contract must have a test plan: No exceptions.
- Very specific: line 103
Mark hardware tests explicitly: Use @pytest.mark.hardware so CI can skip them.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ESP32 Test Plan
Generate a comprehensive test plan covering all applicable testing layers for a firmware change.
When to Use
- After an implementation contract is accepted.
- Before starting implementation.
- When adding test coverage to existing code.
Steps
1. Classify the Change
Determine which testing layers apply:
| Layer | Applies When | Tools |
| Repository logic | Change involves Python tooling or templates | pytest |
| Host-side logic | Change involves pure C logic (parsers, state machines, encoders) | pytest + native compilation |
| ESP-IDF unit tests | Change modifies an isolated component | ESP-IDF unity framework |
| Target integration | Change requires real hardware validation | pytest-embedded |
| Static analysis | Always | cppcheck, compiler warnings |
2. Identify Test Cases
For each applicable layer, list specific test cases:
Positive cases: Expected behavior with valid inputs. Negative cases: Behavior with invalid inputs, null pointers, edge values. Boundary cases: Limits of buffers, ranges, timeouts. Concurrency cases: Race conditions, shared state under load. Error cases: Failure paths, recovery behavior.
3. Define Test Infrastructure
Specify what is needed:
- New test files to create.
- Fixtures or mocks required.
- Test data or configuration.
- Hardware requirements (if any).
4. Set Pass/Fail Criteria
For each test case:
- Expected result.
- Acceptable tolerance (for timing or analog tests).
- Required evidence (log output, assertion pass, measurement).
5. Generate Test Plan Document
Use the template at missions/templates/test_plan_template.md:
# Test Plan: [Feature Name]
## Change Reference
- Contract: [link to implementation contract]
- Mission: [link to mission file]
## Test Layers
### Layer 1: Repository Logic
| Test Case | Input | Expected Output | Status |
|-----------|-------|-----------------|--------|
### Layer 2: Host-Side Logic
| Test Case | Input | Expected Output | Status |
|-----------|-------|-----------------|--------|
### Layer 3: ESP-IDF Unit Tests
| Test Case | Component | Expected Behavior | Status |
|-----------|-----------|-------------------|--------|
### Layer 4: Target Integration
| Test Case | Setup Required | Expected Behavior | Status |
|-----------|---------------|-------------------|--------|
## Infrastructure Requirements
- [ ] [Requirement]
## No-Hardware Tests
[List tests that can run without ESP32 hardware]
## Hardware-Required Tests
[List tests that need real hardware, marked with pytest `@pytest.mark.hardware`]
## Coverage Goals
- Statement coverage target: [X%]
- Branch coverage target: [X%]
- Critical paths that MUST be covered: [list]Rules
- Every implementation contract must have a test plan. No exceptions.
- Maximize no-hardware tests. Extract and test pure logic separately.
- Mark hardware tests explicitly. Use
@pytest.mark.hardwareso CI can skip them. - Include negative tests. Happy-path-only testing is insufficient for firmware.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

