Run a specified set of unit (XUnit/Jest), service, or integration (Playwright or .NET) tests and report every failure in full. Use when I ask to run, execute, or re-run tests, check whether tests pass, or diagnose test failures. Triggers include "run the unit tests", "run the service tests for X", "run the integration tests", "why are the tests failing", "check test status", "did my service change break the contract".
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Run Tests?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/stevenjv-run-tests)
---
name: run-tests
description: Run a specified set of unit (XUnit/Jest), service, or integration (Playwright or .NET) tests and report every failure in full. Use when I ask to run, execute, or re-run tests, check whether tests pass, or diagnose test failures. Triggers include "run the unit tests", "run the service tests for X", "run the integration tests", "why are the tests failing", "check test status", "did my service change break the contract".
allowed-tools: Bash, Read, Glob, Grep
---
# Run Tests
Run the tests I specify, then report every failure with enough detail to act on it
immediately. Do not fix code unless I ask. The job is to run and report.
What each test type covers is defined in the `testing-guidelines` skill. If a test needs
more than its type allows (a "unit" test that needs a database, network, or filesystem, or
a "service" test that needs a live dependency), flag it as miscategorized rather than
treating it as that type.
## Steps
1. **Locate the tests.** Use `Glob`/`Grep` to find the test project, class, suite, or the
project that owns the named endpoint before running anything.
2. **Check scope** against the per-type rules below.
3. **Run the specified tests** with a filter scoped to what I asked for. Write large or
temporary output to `~/tmp`, not the repo.
4. **Parse the results.** Capture pass/fail/skip counts and full failure detail per failing
test, including the extras listed for its type.
## Per-type rules
### Unit
- No scope given: offer to run the whole unit-test project. It's cheap, so confirm rather
than block.
- ```bash
dotnet test path/to/UnitTests.csproj
dotnet test --filter "FullyQualifiedName~{ClassOrMethodName}"
dotnet test --filter "Category=Unit"
```
- Capture: assertion message, expected vs actual, stack trace, source location.
### Service
- No scope given: ask before running the full service suite.
- These repos use the LogCom automation framework in C#/.NET.
- ```bash
dotnet test --filter "FullyQualifiedName~{ServiceOrEndpointName}"
dotnet test --filter "Category=Service"
```
- Capture: assertion message, expected vs actual response, status codes, source location.
For contract failures, show the expected vs actual request/response shape.
### Integration
- Run **only** what I name. No scope given: ask before running the full suite, since it is
slow and hits live dependencies.
- Targets are Local, Docker, Dev, or Staging. If the environment is ambiguous, ask.
- ```bash
dotnet test --filter "FullyQualifiedName~{SuiteOrTestName}"
npx playwright test {path-or-grep}
dotnet test --filter "Category=Integration&FullyQualifiedName~{Name}"
```
- Capture: message, assertion, stack trace, source location.
## Report format
Lead with a one-line summary: passed / failed / skipped totals, plus the service under test
(service) or the environment (integration). Then list **all failures** as a numbered
checklist grouped by test class, suite, or contract. For each failure:
1. **Test name + file and line** where it fails (e.g. `QuoteServiceTests.cs:57`).
2. **Cause**: the actual assertion, exception, or contract mismatch (expected vs actual),
not just "it failed".
3. **Recommended fix.**
If there are zero failures, say so plainly with the totals. Never report success without
run output backing it up. If a run errored or stopped before completing, say so.