agentsclimarketplace

Project testing

Skill ComeOnOliver/skillshub/skills/aiskillstore/marketplace/consiliency/stack-analyzer/templates/project-testing

🧠 The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.

Install
npx -y skills add ComeOnOliver/skillshub --skill project-testing

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

Custom test patterns and fixtures for {project}. Covers E2E, integration, and specialized testing requirements.

SKILL.md

2.7 KB, 594 tokens by cl100k_base, as published. Nobody here has run it

<!-- Generated by ai-dev-kit:recommend-skills on {date} --> <!-- This skill can be safely deleted if no longer needed -->

{project} Testing Patterns

Custom testing patterns, fixtures, and strategies for this project.

Variables

VariableDefaultDescription
COVERAGE_TARGET80Minimum coverage percentage
E2E_TIMEOUT30000E2E test timeout in ms
PARALLEL_TESTStrueRun tests in parallel when possible

Instructions

  1. Identify test type needed (unit/integration/e2e)
  2. Use appropriate fixtures and patterns
  3. Follow project naming conventions
  4. Ensure proper cleanup

Red Flags - STOP and Reconsider

If you're about to:

  • Write a test without proper isolation
  • Skip cleanup in fixtures
  • Hardcode test data instead of using fixtures
  • Write flaky tests (timing-dependent, order-dependent)

STOP -> Use proper fixtures -> Ensure isolation -> Then write test

Test Categories

Unit Tests

Location: tests/unit/

Patterns:

  • Test single functions/methods in isolation
  • Mock external dependencies
  • Fast execution (< 100ms each)

Integration Tests

Location: tests/integration/

Patterns:

  • Test component interactions
  • Use test database/fixtures
  • May have external dependencies

E2E Tests

Location: tests/e2e/ or playwright/

Patterns:

  • Test full user workflows
  • Use browser automation
  • Longer execution time acceptable

Fixtures

Database Fixtures

Location: tests/fixtures/

Usage:

# Python example
from tests.fixtures import sample_user, sample_order

def test_order_creation(sample_user, sample_order):
    # Test uses pre-configured fixtures
    pass

Mock Services

Location: tests/mocks/

Available mocks:

  • [TODO: List project-specific mocks]

Naming Conventions

Test TypeFile PatternFunction Pattern
Unittest_*.pytest_<function>_<scenario>
Integrationtest_*_integration.pytest_<component>_<action>
E2E*.spec.tstest('<feature> - <scenario>')

Coverage Requirements

ComponentMinimum Coverage
Core logic90%
API routes80%
Utilities70%

CI Integration

Tests run in CI:

  • On PR: unit + integration
  • On merge: all including E2E
  • Nightly: full regression suite

Customization

Edit this file to add:

  • New fixture definitions
  • Additional mock services
  • Custom test patterns
  • Coverage exceptions

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.