AgentSkillsCN

test-kmp

在各平台上运行KMP测试套件。若需针对性地运行某项测试,可选择性地传入具体的测试类或方法名。

SKILL.md
--- frontmatter
name: test-kmp
description: Run the KMP test suite across platforms. Optionally pass a specific test class or method name to run a targeted test.
allowed-tools: Bash, Read, Grep
user-invocable: true

Run tests for the DocuBox KMP project.

If $ARGUMENTS is provided, treat it as a test filter (class or method name).

Steps:

  1. Run common tests:

    code
    ./gradlew :composeApp:allTests
    
  2. If a specific test was requested, run with filter:

    code
    ./gradlew :composeApp:allTests --tests "*$ARGUMENTS*"
    
  3. If tests fail:

    • Read the test report for details
    • Show the failing test name, assertion, and expected vs actual values
    • Suggest a fix if the cause is clear
  4. If all tests pass, confirm with a summary of tests run.