Skip to content
Skills Library
Programming · Testing

test-generator

/test-generator

Generate comprehensive test suites including unit tests, integration tests, and e2e tests. Use this skill when users need help writing tests, improving test coverage, or setting up testing frameworks.

Repository
plugins ↗
Licence
MIT
Last repository change
25.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 25.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Generate comprehensive test suites including unit tests, integration tests, and e2e tests. Use this skill when users need help writing tests, improving test coverage, or setting up testing frameworks.

Original author description

Generate comprehensive test suites including unit tests, integration tests, and e2e tests. Use this skill when users need help writing tests, improving test coverage, or setting up testing frameworks.

How it works

  1. Testing Principles
  2. Framework-Specific Patterns
  3. Test Generation Process
  4. Coverage Guidelines
Original SKILL.md headings · 135 lines, 387 words
SKILL.md preview
---
name: test-generator
description: Generate comprehensive test suites including unit tests, integration tests, and e2e tests. Use this skill when users need help writing tests, improving test coverage, or setting up testing frameworks.
---

# Test Generator Skill

You are an expert in software testing. Generate comprehensive, maintainable test suites.

## Testing Principles

### 1. Test Structure (AAA Pattern)
```
Arrange: Set up test data and conditions
Act: Execute the code under test
Assert: Verify the expected outcomes
```

### 2. Test Naming Convention
Use descriptive names that explain:
- What is being tested
- Under what conditions
- Expected outcome

```typescript
// Good
test('calculateTotal returns sum of item prices when cart has multiple items')

// Bad
test('test1')
```

### 3. Test Categories

**Unit Tests**
- Test individual functions/methods in isolation
- Mock external dependencies
- Fast execution (< 100ms per test)
- High coverage target (80%+)

**Integration Tests**
- Test component interactions
- Use real dependencies when practical
- Test database queries, API calls
- Focus on critical paths

**E2E Tests**
- Test complete user workflows
- Run against real environment
- Cover happy paths and critical errors
- Keep suite small and focused

## Framework-Specific Patterns

### Jest (JavaScript/TypeScript)
```typescript
describe('UserService', () => {
  let service: UserService;
  let mockRepo: jest.Mocked<UserRepository>;

  beforeEach(() => {
    mockRepo = createMockRepo();
    service = new UserService(mockRepo);
  });

  describe('findById', () => {
    it('returns user when found', async () => {
      mockRepo.findById.mockResolvedValue(testUser);
      const result = await service.findById('123');
      expect(result).toEqual(testUser);
    });

    it('throws NotFoundError when user missing', async () => {
      mockRepo.findById.mockResolvedValue(null);
      await expect(service.findById('123'))
        .rejects.toThrow(NotFoundError);
    });
  });
});
```

### Pytest (Python)
```python
class TestUserService:
    @pytest.fixture
    def service(self, mock_repo):
        return UserService(mock_repo)

    def test_find_by_id_returns_user_when_found(self, service, mock_repo):
        mock_repo.find_by_id.return_value = test_user
        result = service.find_by_id("123")
        assert result == test_user

    def test_find_by_id_raises_when_not_found(self, service, mock_repo):
        mock_repo.find_by_id.return_value = None
        with pytest.raises(NotFoundError):
            service.find_by_id("123")
```

### Go Testing
```go
func TestUserService_FindById(t *testing.T) {
    t.Run("returns user when found", func(t *testing.T) {
        repo := &MockUserRepo{user: testUser}
        service := NewUserService(repo)

        result, err := service.FindById("123")

        assert.NoError(t, err)
        assert.Equal(t, testUser, result)
    })
}
```

## Test Generation Process

1. **Analyze the Code**
   - Identify public interfaces
   - Map input/output combinations
   - Find edge cases and error conditions

2. **Prioritize Test Cases**
   - Happy path scenarios
   - Error handling
   - Boundary conditions
   - Edge cases

3. **Generate Tests**
   - Follow project conventions
   - Use existing test utilities
   - Match the project's assertion style

## Coverage Guidelines

- Aim for meaningful coverage, not 100%
- Focus on business logic and complex conditionals
- Don't test framework code or trivial getters/setters
- Ensure error paths are covered

Versions

RepositoryScoreLicence
This page · roboco-io/plugins100MIT
TerminalSkills/skills100Apache-2.0
thisiskurubaran/DevSecOps100MIT
adrien-barret/claude-kit100MIT
rshankras/claude-code-apple-skills100MIT
armanzeroeight/fastagent-plugins100MIT

Database snapshot: 13.11.2026 · package version bff87f3cc472 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100unit-testing-test-generate
    Generate comprehensive, maintainable unit tests across languages with strong coverage and edge case focus. Use when writing test suites or improving test coverage.
  • 100integration-test-generator
    Generate integration test generator operations. Auto-activating skill for API Integration. Triggers on: integration test generator, integration test generator Part of the API Integration skill category. Use when writing or running tests. Trigger with phrases like "integration…
  • 84generate-tests
    Generate comprehensive tests for code. Use when user says "write tests for this function", "add unit tests to this file", "generate integration tests for the API", "I need test coverage for this module", or "create e2e tests for the checkout flow".
  • 100unit-test-generator
    Intelligent unit test generator for frontend projects that detects existing test frameworks and generates comprehensive tests for functions, components, and modules. Use when you need to: (1) Add unit tests to existing codebases, (2) Set up testing infrastructure for new…
  • 100test-auto
    Create unit, integration, and e2e test suites. Use when setting up or improving tests.
  • 100testing-strategy
    Comprehensive testing methodology, test pyramid, deterministic unit tests, and integration testing. Use when designing test suites or debugging flaky tests.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.