majesticlabs-dev/majestic-marketplace

test-runner

Run test suite and return structured pass/fail results.

ソースを見る

使い方

  1. インストールコマンドをコピーし、自分の環境へ導入する前にソースを確認します。
  2. 必要なツール、認証情報、対応環境を原文で確認します。
  3. 入力と成果物を指定し、出力を資料と照合します。
npx skills add https://github.com/majesticlabs-dev/majestic-marketplace --skill test-runner

開始前の確認

  • 導入にはモデル契約、API枠、ファイルへのアクセス許可は含まれません。
  • スター数や導入数は活動の指標であり、独立した品質・安全性試験ではありません。
リポジトリの原文

見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。

Test Runner

Run tests and return structured results.

Input

yaml
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
  1. Run tests (scoped if provided, otherwise full suite)
  1. 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

yaml
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

タスクに関連する項目

同じリポジトリから

関連する Skills

すべての Skills