Skill

test-runner

Install
1
Install the plugin
$
npx claudepluginhub majesticlabs-dev/majestic-marketplace --plugin majestic-engineer

Want just this skill?

Add to a custom plugin, then install with one command.

Description

Run test suite and return structured pass/fail results. Supports scoped runs by directory, file, or test name pattern. Triggers on run tests, execute tests, test results, check tests, verify tests pass.

Tool Access

This skill uses the workspace's default tool permissions.

Skill Content

Test Runner

Run tests and return structured results.

Input

scope: string  # Optional: directory, file path, or test name pattern

Process

  1. Detect framework from project files (if not provided):

    • spec/ + _spec.rb + .rspec = RSpec
    • test/ + _test.rb = Minitest
    • jest.config.js or *.test.js = Jest/Vitest
    • go.mod + _test.go = Go test
    • pytest.ini or conftest.py = pytest
  2. Run tests (scoped if provided, otherwise full suite)

  3. Parse output for pass/fail counts and failure details

Framework Commands

FrameworkRun AllRun FileRun Single
RSpecbundle exec rspecbundle exec rspec path/to/spec.rbbundle exec rspec path:LINE
Minitestbundle exec rake testruby -Itest path/to/test.rbruby -Itest path -n test_name
Jestnpx jestnpx jest path/to/test.jsnpx jest path -t "name"
pytestpytestpytest path/to/test.pypytest path::test_name
Gogo test ./...go test ./path/go test ./path/ -run TestName

Output

status: PASS | FAIL
total: int
passed: int
failed: int
failures:        # Only if failed
  - file: string
    line: int
    name: string
    message: string

Error Handling

ScenarioAction
Test framework unclearAsk user
Tests failReturn FAIL with failure details
Command errorReturn FAIL with stderr
Stats
Stars30
Forks6
Last CommitMar 15, 2026
Actions

Similar Skills