Test generator
Skill Tibsfox/gsd-skill-creator/project-claude/skills/test-generator
Introduces a comprehensive agent-based framework for guided software development (GSD)
npx -y skills add Tibsfox/gsd-skill-creator --skill test-generatorAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
What its author says it does
Copied from the file, not written here
Generates test cases for functions and components. Use when writing tests or creating test suites.
SKILL.md
1.2 KB, as published. Nobody here has run it
Test Generation
Structure (AAA Pattern)
it('should [expected] when [condition]', () => {
// Arrange — set up data
// Act — perform operation
// Assert — verify outcome
});
Test Categories
| Category | Test For |
|---|---|
| Happy path | Valid input → expected output |
| Edge cases | Empty, null, boundary values |
| Error cases | Invalid input, failures |
| Side effects | State changes, calls made |
| Async | Resolve/reject paths |
Naming
Pattern: should [behavior] when [condition]
Organization
- Group with
describeby function/method - Reset state in
beforeEach - One concept per test
Anti-Patterns
| Don't | Do |
|---|---|
| Test implementation | Test behavior |
| Share mutable state | Reset in beforeEach |
| Many assertions per test | One concept per test |
| Test private methods | Test through public API |
| Snapshot overuse | Assert specific values |