test

rxtech-lab 的头像作者 rxtech-lab

运行argo-trading项目的代码质量检查和测试。当用户请求测试代码或运行测试、请求lint或检查代码质量、想要验证代码更改是否正确工作、或说“/test”或请求运行测试套件时使用。

📖 中文导读:运行argo-trading项目的代码质量检查和测试。当用户请求测试代码或运行测试、请求lint或检查代码质量、想要验证代码更改是否正确工作、或说“/test”或请求运行测试套件时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: test description: Run code quality checks and tests for the argo-trading project. Use this skill when: (1) User asks to test the code or run tests, (2) User asks to lint or check code quality, (3) User wants to verify code changes work correctly, (4) User says "/test" or asks to run the test suite.

Test

Run linting and tests to ensure code quality.

Workflow

  1. Run linting with make lint
  2. Run tests with make test
  3. Report results and fix any issues found

Commands

Lint

make lint

Runs golangci-lint run ./... to check for code quality issues.

Test

make test

Runs go test ./... to execute all tests.

Full Quality Check

Run both commands sequentially:

make lint && make test

Handling Failures

  • Lint failures: Fix the reported issues before proceeding
  • Test failures: Investigate failing tests, check error messages, and fix the underlying issues
  • Report a summary of results to the user