Skip to content
Back to skills

Test Setup

BSecurity

Configure testing infrastructure with CI/CD. Use when setting up tests, scaffolding test dirs, adding pre-commit hooks, GitHub Actions workflows, Codecov, or coverage badges.

  • 60 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 3, 2026
testinggobashtestinggitci/cddocumentation

Security analysis

B84/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned November 9, 2026

npx -y skills add laurigates/claude-plugins --skill test-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Test Setup
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/laurigates-test-setup/badge)](https://www.skillsdirectory.com/skills/laurigates-test-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
created: 2025-12-16
modified: 2026-06-18
reviewed: 2026-04-25
allowed-tools: Read, Write, Edit, Bash(pip install *), Bash(npm install *), Bash(pre-commit *), Bash(pytest *), Bash(npm test *), Bash(git *), TodoWrite, SlashCommand
description: "Configure testing infrastructure with CI/CD. Use when setting up tests, scaffolding test dirs, adding pre-commit hooks, GitHub Actions workflows, Codecov, or coverage badges."
args: "[--coverage] [--ci <github|gitlab|circleci>]"
argument-hint: "[--coverage] [--ci <github|gitlab|circleci>]"
name: test-setup
---

## When to Use This Skill

| Use this skill when... | Use test-consult instead when... |
|---|---|
| Scaffolding test directories and pre-commit hooks for a new project | Asking "how should we test X?" before any setup |
| Wiring up a CI workflow with coverage reporting | Diagnosing flaky tests in an established suite |
| Adding test/coverage badges to the README | Choosing the right framework for a tech stack |
| Migrating an existing project to a standard test layout | Running the actual tests (use test-run or test-full) |

## Context

- Package files: !`find . -maxdepth 1 \( -name "package.json" -o -name "pyproject.toml" -o -name "setup.py" -o -name "go.mod" -o -name "Cargo.toml" \) -type f`
- Test config: !`find . -maxdepth 1 \( -name "pytest.ini" -o -name "jest.config.*" -o -name "vitest.config.*" -o -name ".mocharc.*" \) -type f`
- Pre-commit config: !`find . -maxdepth 1 -name ".pre-commit-config.yaml" -type f`
- GitHub Actions: !`find . -path '*/.github/workflows/*' -maxdepth 3 -type f -name "*.yml" -o -name "*.yaml"`

## Your task

### 1. Pre-commit Setup
- Install pre-commit if needed: `pip install pre-commit`
- Create/update `.pre-commit-config.yaml` with language-specific hooks
- Install hooks: `pre-commit install`
- Test with: `pre-commit run --all-files`

### 2. Test Structure
- Create test directories: `tests/unit`, `tests/integration`, `tests/e2e`
- Write comprehensive tests covering:
  - Unit tests for all functions
  - Integration tests for components
  - Edge cases and error handling
- Use SlashCommand: `/test:run` to verify test execution
- Use SlashCommand: `/code:lint` to ensure test code quality

### 3. GitHub Actions
- Create `.github/workflows/tests.yml` with matrix testing
- Add coverage reporting with Codecov integration
- Configure GitHub Pages for coverage reports

### 4. Documentation
- Set up documentation generation (Sphinx/TypeDoc/godoc)
- Create `.github/workflows/docs.yml` for auto-generation
- Deploy docs to GitHub Pages

### 5. Badges
- Add test and coverage badges to README

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.