Skip to content
Back to skills

Scaffold Testing

ASecurity

Add Pest v4 + Orchestra Testbench v10 testing to an existing Laravel package

  • 35 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 7, 2026
testingpythonphpbashtestinggit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add mwguerra/claude-code-plugins --skill scaffold-testing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Scaffold Testing?

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

Security grade badge for Scaffold Testing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mwguerra-scaffold-testing/badge)](https://www.skillsdirectory.com/skills/mwguerra-scaffold-testing)

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
---
description: Add Pest v4 + Orchestra Testbench v10 testing to an existing Laravel package
allowed-tools: Bash(python3:*), Bash(composer:*), Write, Read, Glob
---

# Pest Testing Scaffold Skill

Adds Pest v4 + Orchestra Testbench v10 testing infrastructure to an existing Laravel package that lacks testing.

## Usage

When the user wants to add testing to an existing package:

```bash
python3 ${SKILL_DIR}/scripts/scaffold_testing.py <vendor/package-name> [options]
```

## Options

- `--with-coverage` - Add code coverage configuration
- `--with-ci` - Add GitHub Actions CI workflow
- `--project-root` - Specify project root directory

## Examples

### Basic testing setup
```bash
python3 ${SKILL_DIR}/scripts/scaffold_testing.py mwguerra/my-package
```

### With CI
```bash
python3 ${SKILL_DIR}/scripts/scaffold_testing.py mwguerra/my-package --with-ci
```

### Full setup
```bash
python3 ${SKILL_DIR}/scripts/scaffold_testing.py mwguerra/my-package --with-coverage --with-ci
```

## What Gets Created/Updated

### Files Created

1. **phpunit.xml** — PHPUnit configuration with source coverage for `src/`
2. **tests/Pest.php** — Pest configuration with TestCase binding
3. **tests/TestCase.php** — Orchestra TestCase with `WithWorkbench` trait
4. **tests/Unit/ExampleTest.php** — Sample tests verifying environment and provider
5. **tests/Feature/.gitkeep** — Feature tests directory
6. **.github/workflows/tests.yml** (if `--with-ci`)

### composer.json Updates

```json
{
  "require-dev": {
    "orchestra/testbench": "^10.0",
    "pestphp/pest": "^4.0",
    "pestphp/pest-plugin-laravel": "^4.0",
    "orchestra/pest-plugin-testbench": "^4.0"
  }
}
```

## Running Tests

```bash
cd packages/vendor/package-name
composer install
./vendor/bin/pest
```

Files in this skill

  • SKILL.md1.7 KB
  • scripts/scaffold_testing.py13.2 KB

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.

Comments

Loading comments…

Newsletter

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