AgentSkillsCN

test

运行 Ruby 和/或 Go 测试。可传入文件路径以运行特定测试,或不传参数以运行全部测试。

SKILL.md
--- frontmatter
name: test
description: Run Ruby and/or Go tests. Pass a file path to run a specific test, or no args to run all.

Test Runner

Run tests for Proscenium.

Usage

  • /test — Run all Ruby and Go tests
  • /test test/builder_test.rb — Run a specific Ruby test file
  • /test test/builder_test.rb -n test_method_name — Run a specific Ruby test method
  • /test test/builder_test.rb:10 — Run a specific Ruby test at line number
  • /test ./test -run TestBuild — Run specific Go tests

Steps

  1. Determine what to run based on arguments:
    • No args: Run both Go and Ruby tests
    • .rb file or Ruby-style args: Run Ruby tests
    • Go path/pattern: Run Go tests
  2. For Ruby tests, compile the Go binary first: bundle exec rake compile:local
  3. Run the appropriate command:
    • Ruby: bundle exec rails test <args>
    • Go: go test <args>
  4. Report results