Back to Skills

testing

verified

Execute testing workflows including unit tests, manifest validation, security scanning, and integration tests with proper reporting

View on GitHub

Marketplace

agentops-marketplace

boshu2/agentops

Plugin

domain-kit

development

Repository

boshu2/agentops
6stars

plugins/domain-kit/skills/testing/SKILL.md

Last Verified

January 24, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/boshu2/agentops/blob/main/plugins/domain-kit/skills/testing/SKILL.md -a claude-code --skill testing

Installation paths:

Claude
.claude/skills/testing/
Powered by add-skill CLI

Instructions

# Testing Skill

Provides comprehensive testing workflows for validation, security scanning, and quality assurance across the GitOps infrastructure.

## When to Use

Use this skill when you need to:
- Run unit tests (pytest) against Python code
- Validate manifests against schema and policies
- Perform security scanning (SAST, dependency checks)
- Run integration tests (Kustomization, Helm, Argo CD)
- Generate coverage reports
- Perform pre-commit validation
- Execute full CI suite before merging

## How to Invoke

**Automatic (Claude decides):**
```
Run the test suite to ensure the changes are correct
```

**Explicit:**
```
Use the testing skill to validate the manifests and run tests
```

## Testing Types

### 1. Unit Tests (Python)

**Run all tests:**
```bash
uv run pytest tests/ -v
```

**Run specific test file:**
```bash
uv run pytest tests/test_harmonize.py -v
```

**Run with coverage:**
```bash
uv run pytest tests/ --cov=tools/scripts --cov-report=html
```

**TDD Workflow:**
```bash
# 1. Write test (RED - fails)
uv run pytest tests/test_new_feature.py -v

# 2. Write minimal code (GREEN - passes)
uv run pytest tests/test_new_feature.py -v

# 3. Refactor with confidence
uv run pytest tests/ --cov=mymodule --cov-report=term
```

### 2. Manifest Validation

**Quick syntax check:**
```bash
make quick              # YAML syntax (5 seconds)
```

**Single app test:**
```bash
make test-app APP=myapp  # Render single app (3 seconds)
```

**Full validation:**
```bash
make ci-all             # Complete CI suite (30 seconds)
```

### 3. Kustomization Tests

**Verify kustomization builds:**
```bash
kustomize build apps/myapp/
```

**Check patches apply correctly:**
```bash
kustomize build apps/myapp/ | grep -A 5 "patchedResource"
```

**Validate referenced resources exist:**
```bash
kustomize cfg print apps/myapp/kustomization.yaml
```

### 4. Helm Tests

**Validate Helm charts:**
```bash
helm lint apps/myapp/    # Check chart syntax
helm template myapp apps/myapp/  # Prev

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
6605 chars