test
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.
When & Why to Use This Skill
This Claude skill automates code quality assurance for the argo-trading project by integrating linting and testing workflows. It helps developers maintain high standards by identifying syntax errors, stylistic issues, and logic bugs through automated 'make' commands, ensuring robust and reliable code deployments.
Use Cases
- Pre-commit Verification: Automatically run linting and tests to ensure new code changes don't break existing functionality before merging.
- Code Quality Auditing: Use the '/test' command to perform a comprehensive check of the codebase against project-specific golangci-lint rules.
- Rapid Debugging: Quickly validate bug fixes by executing specific test suites and analyzing error reports directly within the chat interface.
- Continuous Integration Support: Verify that the local environment meets all quality gates before pushing code to remote repositories.
| 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
- Run linting with
make lint - Run tests with
make test - 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