Skip to content
Back to skills

Run Tests

ASecurity

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".

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
testinggoc#bashdockertestingdatabase

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add StevenJV/tools --skill run-tests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Run Tests?

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

Security grade badge for Run Tests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/stevenjv-run-tests/badge)](https://www.skillsdirectory.com/skills/stevenjv-run-tests)

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: 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.

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.

View all in testing →

Comments

Loading comments…

Newsletter

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