test-auto

Create comprehensive test suites following the testing pyramid.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "test-auto" with this command: npx skills add htlin222/dotfiles/htlin222-dotfiles-test-auto

Test Automation

Create comprehensive test suites following the testing pyramid.

When to Use

  • Setting up tests for new code

  • User asks to "add tests" or "improve coverage"

  • Before refactoring (add tests first)

  • Implementing CI/CD test pipelines

Testing Pyramid

/\        E2E (few, critical paths)

/ \ Integration (moderate) /____\ Unit (many, fast)

Test Structure

Unit Tests

  • Test individual functions/methods

  • Mock external dependencies

  • Fast execution (<100ms per test)

  • High coverage (>80%)

Integration Tests

  • Test component interactions

  • Use test databases/containers

  • Moderate execution time

  • Cover critical integrations

E2E Tests

  • Test complete user flows

  • Use Playwright/Cypress

  • Slowest execution

  • Cover happy paths only

Test Patterns

// Arrange-Act-Assert describe("UserService", () => { it("should create user with valid data", async () => { // Arrange const userData = { name: "Test", email: "test@example.com" };

// Act
const result = await userService.create(userData);

// Assert
expect(result.id).toBeDefined();
expect(result.name).toBe("Test");

}); });

Output

  • Test files with clear naming

  • Mock/stub implementations

  • Test data factories

  • Coverage configuration

  • CI pipeline integration

Examples

Input: "Add tests for the auth module" Action: Analyze auth module, create unit tests for functions, integration tests for flows

Input: "Set up testing for this project" Action: Detect framework, configure test runner, create example tests, add CI config

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

data-science

No summary provided by upstream source.

Repository SourceNeeds Review
General

c-lang

No summary provided by upstream source.

Repository SourceNeeds Review
General

cpp

No summary provided by upstream source.

Repository SourceNeeds Review
General

javascript

No summary provided by upstream source.

Repository SourceNeeds Review