testing
Implements Test-Driven Development for this project—unit tests, integration tests with testcontainers, mocks, and regression tests.
Skill by pedromsmoreira
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/pedromsmoreira-testing
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/testing
What's inside
- Skill name
testing- Description
- Implements Test-Driven Development for this project—unit tests, integration tests with testcontainers, mocks, and regression tests. Use when writing or fixing tests, reproducing bugs with tests, or improving coverage.
- License
- MIT
- Instructions
- 61 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Testing Skill
## When to use
- Writing unit or integration tests (Go or frontend)
- Writing E2E/API integration tests in `test/` folder with BDD stage patterns
- Applying TDD: failing test first, then implementation, then refactor
- Reproducing a bug with a test before fixing it
- Creating or updating bug reports when not fixing immediately
- Improving or verifying test coverage
## Test Structure Pattern
**Critical Rule**: Main test functions must contain subtests.
### Go Tests
- **Black box only**: use `package <name>_test`, import the package under test, test public API only (see `go-testing-practices.mdc`)
- **Main test functions** (`TestXxx`) **MUST** contain one or more subtests using `t.Run`
- Each test case should be a subtest within the main test function
- Group related scenarios as subtests within the same main test function
- Use separate main test functions for different behaviors or distinct test groups
```go
// ✅ GOOD: Main function contains subtests
func TestNewEmail_WithInvalidInput_ReturnsError(t *testing.T) {
t.Run("returns error for invalid email format", func(t *testing.T) {
// test case
})
t.Run("returns error for empty string", func(t *testing.T) {
// test case
})
}
```
### Frontend Tests
- **Main test suites** should use `describe` blocks to organize related test cases
- Each `test` or `it` block should test one specific behavior
- Group related test cases within the same `describe` block
```typescript
// ✅ GOOD: Main describe block contains multiple test cases
describe('LoginPage', () => {
test('user can submit login form', async () => { /* ... */ });
test('displays error when email is invalid', async () => { /* ... */ });
});
```
## References
| File | Purpose |
|------|---------|
| [../../rules/go-testing-practices.mdc](../../rules/go-testing-practices.mdc) | Go testing (testify, t.Run subtests pattern, unit tests with mocks, integration tests with testcontainers), test naming, coverage, test data factories |
| [../../rules/frontend-testing-practices.mdc](../../rules/frontend-testing-practices.mdc) | Frontend testing (React Testing Library, describe/test blocks, MSW), build verification, TypeScript compilation checks |
| [../../rules/test-driven-development.mdc](../../rules/test-driven-development.mdc) | TDD core principles, Iron Law, verification checklist, red flags |
| [../tdd-workflow/SKILL.md](../tdd-workflow/SKILL.md) | Detailed TDD workflow with examples, common rationalizations, bug fix walkthrough |
| [../../rules/e2e-testing-standards.mdc](../../rules/e2e-testing-standards.mdc) | E2E tests in test/ folder: Given-When-Then architecture, stage files (*_test_stage.go), functional options, file organization |
| [../../rules/e2e-test-overview.mdc](../../rules/e2e-test-overview.mdc) | Quick reference for E2E BDD pattern, when to use, method naming |
| [../../rules/e2e-test-examples.mdc](../../rules/e2e-test-examples.mdc) | 7 complete examples (POST, GET, PATCH, DELETE, auth, event-driven) |
| [../../rules/testing-agent.mdc](../../rules/testing-agent.mdc) | Bug handling and prioritization (critical vs low), bug report template, BUG_NNN naming, systematic testing checklist, when to fix vs when to backlog |From pedromsmoreira/ai-configs, MIT.
More from pedromsmoreira/ai-configs
- 0.497score
conventional-commits
pedromsmoreira
Formats and validates commit messages per Conventional Commits (header grammar, optional body and footers, breaking changes).
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
go-backend
pedromsmoreira
Implements and modifies Go backend services for this project—gRPC handlers, services, domain logic, repositories, and Protocol Buffers—following idiomatic Go…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
http-rest-endpoints
pedromsmoreira
Create HTTP handlers and REST endpoints following shrtner project standards.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
rest-api-design
pedromsmoreira
Designs REST and HTTP endpoints for this project—URL structure, HTTP methods, status codes, request/response patterns, error handling, and versioning.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
git-commit
pedromsmoreira
Creates git commits safely with Conventional Commits messages.
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
tdd-workflow
pedromsmoreira
Detailed TDD workflow with examples, rationales, and anti-patterns.
SkillCFreshness: C★ 1Claude Code +9 - 0.492score
database-migrations
pedromsmoreira
Creates and manages PostgreSQL schema migrations with golang-migrate for this project.
SkillCFreshness: C★ 1Claude Code +9 - 0.492score
frontend-react
pedromsmoreira
Builds React 18+ and TypeScript UI for this project—components, Material-UI, Zustand, React Query, and REST API integration.
SkillCFreshness: C★ 1Claude Code +9 - 0.492score
user-stories
pedromsmoreira
Writes user stories, acceptance criteria, and backlog items for this project.
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 5, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/pedromsmoreira/ai-configs
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from pedromsmoreira
- 0.497score
conventional-commits
pedromsmoreira
Formats and validates commit messages per Conventional Commits (header grammar, optional body and footers, breaking changes).
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
go-backend
pedromsmoreira
Implements and modifies Go backend services for this project—gRPC handlers, services, domain logic, repositories, and Protocol Buffers—following idiomatic Go…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
http-rest-endpoints
pedromsmoreira
Create HTTP handlers and REST endpoints following shrtner project standards.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
rest-api-design
pedromsmoreira
Designs REST and HTTP endpoints for this project—URL structure, HTTP methods, status codes, request/response patterns, error handling, and versioning.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
git-commit
pedromsmoreira
Creates git commits safely with Conventional Commits messages.
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
tdd-workflow
pedromsmoreira
Detailed TDD workflow with examples, rationales, and anti-patterns.
SkillCFreshness: C★ 1Claude Code +9
Cite this page
testing skill. Agent Mart. https://agentmart.dev/skills/pedromsmoreira-testing (last updated 2026-10-24)