AgentSkillsCN

run-test

为 Bifrost 运行单元测试,并协助诊断和修复因近期变更而导致的测试失败问题。

SKILL.md
--- frontmatter
name: run-test
description: Runs unit tests for Bifrost and helps diagnose/fix test failures related to recent changes.

Run Test Command

Runs unit tests and analyzes failures.

Usage

/run-test [scope]

  • /run-test -> All tests
  • /run-test poweroffice -> Specific module
  • /run-test fix -> Analyze and fix failures

Execution

powershell
cd d:\SourceCode\Amplifai.Bifrost\src\Amplifai.Bifrost.Tests
dotnet test --filter "FullyQualifiedName~Module"

Diagnosis Workflow

  1. Run Tests: Capture output.
  2. Categorize Error: Build, Runtime, or Assertion.
  3. Analyze Context: Check recent changes.
  4. Propose/Apply Fix:
    • Add missing project refs.
    • Fix using statements.
    • Initialize required props.
    • Update assertions.