# Build Project Testing Patterns

Teams often write inconsistent tests that are hard to maintain. This skill gives Claude, Codex, and Claude Code a shared testing structure for fixtures, mocks, coverage, and CI scope.

## Install

```bash
npx skillstore add consiliency/project-testing
```

## Metadata

- Status: approved
- Slug: consiliency-project-testing
- Skillstore revision: r1
- Version status: missing
- Tree hash: 65559a9646a114ed17ff88f69060bc82df7f4e722b4416ff8352fe61d5daa1c9
- Author: Consiliency
- GitHub username: Consiliency
- License: MIT
- Repository: https://github.com/Consiliency/treesitter-chunker/tree/main/.ai-dev-kit/skills/stack-analyzer/templates/project-testing
- Ref: d11af420e07cd866fe39cfa937efef3223896c06
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands
- Quality score: 78
- Quality tier: bronze
- Public page: https://skillstore.pages.dev/skills/consiliency-project-testing
- Manifest: https://skillstore.pages.dev/api/skills/consiliency-project-testing/manifest

## Capabilities

- Classifies requested tests as unit, integration, or end-to-end work.
- Points assistants toward documented fixture and mock locations.
- Defines naming conventions for unit, integration, and E2E test files.
- Promotes isolation, cleanup, and fixture-based test data.
- Summarizes coverage targets for core logic, API routes, and utilities.
- Describes which test groups should run on pull requests, merges, and nightly jobs.

## Use Cases

- Create focused unit tests: Use the skill to keep generated unit tests isolated, fast, and aligned with local naming rules.
- Plan integration coverage: Use the skill to structure tests around component interactions, database fixtures, and cleanup expectations.
- Standardize QA workflows: Use the skill to align E2E tests, coverage targets, and CI test groups across a project.

## Prompt Templates

### Choose test type

```
Use the project-testing skill. Decide whether this should be a unit, integration, or E2E test, then explain the test scope.
```

### Draft a unit test plan

```
Use the project-testing skill to plan unit tests for this function. Include isolation needs, fixtures, naming, and cleanup checks.
```

### Design integration tests

```
Use the project-testing skill to design integration tests for this workflow. Identify fixtures, mock services, database setup, and expected cleanup.
```

### Build a release test strategy

```
Use the project-testing skill to create a release test strategy. Cover unit, integration, E2E, coverage targets, CI timing, and flake risks.
```

## Limitations

- It is a template and still contains project placeholders.
- It does not include runnable test commands or framework configuration.
- It does not define real project fixtures or mock services.
- It cannot verify coverage results without the project test runner.

## Best Practices

- Replace template placeholders with real project paths before relying on the skill.
- Provide the code or workflow under test when asking for test plans.
- Ask the assistant to state cleanup and isolation assumptions for every test.

## Anti Patterns

- Do not use the skill as a substitute for running the actual test suite.
- Do not accept generated tests that depend on execution order or fixed timing.
- Do not keep placeholder fixture and mock names in production test guidance.

## Security Audit

- Audited at: 2026-07-06T07:54:01.991\+00:00
- Summary: The static findings are false positives caused by Markdown backticks and a fenced Python example in SKILL.md. The reviewed file provides testing guidance only, with no executable shell commands, prompt injection attempt, data exfiltration intent, or malicious workflow.

## Stats

- Views: 253
- Downloads: 9
- Favorites: 0
- Popularity score: 0
