搜索

PythonReactSEOPDF
GitHub Skill

test

Run tests and report results. Use when you need to verify code changes work correctly.

sanity-labs☆ 4 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Test Runner

Run the test suite and interpret results.

Usage

Just say /test to run all tests, or specify options:

  • /test - Run all tests once
  • /test watch - Run tests in watch mode
  • /test coverage - Run with coverage report
  • /test <pattern> - Run tests matching pattern

Instructions

  1. Run the appropriate test command based on user request:

    • Default: pnpm test
    • Watch mode: pnpm test:watch
    • Coverage: pnpm test:coverage
    • Pattern: pnpm test -- --testNamePattern="<pattern>"
  2. Parse the output and report:

    • Number of tests passed/failed
    • Which specific tests failed
    • Error messages and stack traces for failures
  3. If tests fail:

    • Identify the failing test file and test name
    • Show the relevant assertion error
    • Suggest what might need to be fixed
  4. If tests pass:

    • Confirm success briefly
    • Show coverage summary if requested

Example Output

✓ 12 tests passed
✗ 1 test failed

FAILED: packages/groq-lint/src/rules/__tests__/join-in-filter.test.ts
  × join-in-filter > invalid > nested join in filter
    Expected 2 errors but got 1

Suggestion: The nested dereference case may need adjustment in the walker.

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!