Skip to content
Back to skills

Mocks

ASecurity

Start or stop the WireMock API mock server for UI testing and E2E verification.

  • 357 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 12, 2026
developmentjavabashtestingapi

Works with

  • api

Security analysis

A96/100
  • mediumUses curl or wget to download content

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

Scanned September 12, 2026

npx -y skills add woocommerce/woocommerce-ios --skill mocks --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mocks?

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

Security grade badge for Mocks
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/woocommerce-mocks/badge)](https://www.skillsdirectory.com/skills/woocommerce-mocks)

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
---
name: mocks
description: Start or stop the WireMock API mock server for UI testing and E2E verification.
user-invocable: true
allowed-tools: "Bash"
argument-hint: "[start|stop]"
---

# WireMock Mock Server

Manage the WireMock mock server that serves API responses for UI tests and E2E verification.

Requires **Java** (`brew install openjdk` if missing).

## Start

```bash
./API-Mocks/scripts/start.sh 8282 &
sleep 3
```

Verify it's running:
```bash
curl -s http://localhost:8282/__admin/ > /dev/null && echo "WireMock running on port 8282" || echo "WireMock failed to start"
```

If Java is not installed, report the prerequisite and stop.

## Stop

```bash
./API-Mocks/scripts/stop.sh 8282
```

Uses WireMock's graceful shutdown endpoint. Falls back to kill-by-port if the shutdown endpoint is unreachable:
```bash
kill $(lsof -ti:8282) 2>/dev/null
```

## Details

- **Port**: 8282 (default)
- **Mappings**: `Modules/Sources/APIMocks/Resources/mappings/`
- **Response files**: `Modules/Sources/APIMocks/Resources/__files/`
- **Start script**: `API-Mocks/scripts/start.sh`
- **WireMock**: auto-downloaded on first run (version configured in `start.sh`)

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.