Apply Arrange-Act-Assert pattern for clear tests
Scanned 9/10/2026
Install to Claude Code
npx -y skills add snoodleboot-io/prompticorn --skill minimal --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Minimal?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/snoodleboot-io-minimal-554a24a7)More formats (shields.io, HTML) on the badges page.
---
name: test-aaa-structure
description: Apply Arrange-Act-Assert pattern for clear tests
languages: [python, typescript, javascript, go, rust, java, csharp, php, ruby]
subagents: [test/unit, test/integration, code/feature]
tools_needed: [read, write]
---
## Instructions
Structure tests using **Arrange-Act-Assert** (AAA):
1. **Arrange:** Set up state and inputs
2. **Act:** Call the function/method under test
3. **Assert:** Verify outputs and side effects
### Key Rules
- One logical assertion per test
- Descriptive test names (read like sentences)
- Separate AAA sections with blank lines or comments
### Example
```python
def test_get_user_returns_user_when_found():
# Arrange
user = User(id="123", name="Alice")
db.save(user)
# Act
result = get_user_by_id("123")
# Assert
assert result.name == "Alice"
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.