# Testing & Test Automation Plugin

Comprehensive collection for writing tests, test automation, and test-driven development including unit tests, integration tests, and end-to-end testing strategies.

## Installation

```bash
# Using Copilot CLI
copilot plugin install testing-automation@awesome-copilot
```

## What's Included

### Commands (Slash Commands)

| Command | Description |
|---------|-------------|
| `/testing-automation:playwright-explore-website` | Website exploration for testing using Playwright MCP |
| `/testing-automation:playwright-generate-test` | Generate a Playwright test based on a scenario using Playwright MCP |
| `/testing-automation:csharp-nunit` | Get best practices for NUnit unit testing, including data-driven tests |
| `/testing-automation:java-junit` | Get best practices for JUnit 5 unit testing, including data-driven tests |
| `/testing-automation:ai-prompt-engineering-safety-review` | Comprehensive AI prompt engineering safety review and improvement prompt. Analyzes prompts for safety, bias, security vulnerabilities, and effectiveness while providing detailed improvement recommendations with extensive frameworks, testing methodologies, and educational content. |

### Agents

| Agent | Description |
|-------|-------------|
| `tdd-red` | Guide test-first development by writing failing tests that describe desired behaviour from GitHub issue context before implementation exists. |
| `tdd-green` | Implement minimal code to satisfy GitHub issue requirements and make failing tests pass without over-engineering. |
| `tdd-refactor` | Improve code quality, apply security best practices, and enhance design whilst maintaining green tests and GitHub issue compliance. |
| `playwright-tester` | Testing mode for Playwright tests |

## Source

This plugin is part of [Awesome Copilot](https://github.com/github/awesome-copilot), a community-driven collection of GitHub Copilot extensions.

## License

MIT
