원클릭으로
run-tests
Commands to execute tests in this project with various options and configurations
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Commands to execute tests in this project with various options and configurations
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Debug code using detailed profiling and critical path timing before making suggestions
Workflow for investigating and fixing failing tests in this project
Making Python or TypeScript packages shareable (pip/npm)
Setup pytest with coverage reporting and watch mode for this Python project
Format code according to project standards and fix linting issues
Git branch strategy, commit conventions, and PR process for this project
| name | run-tests |
| description | Commands to execute tests in this project with various options and configurations |
| auto-activates | ["run tests","execute tests","how do I run tests","test command","running tests"] |
This skill activates when you need to:
This skill assumes tests are already configured. If not, use the pytest-setup or jest-setup skill first.
Check for configured test command:
Look in project configuration files:
package.json → scripts.testpyproject.toml → [tool.pytest] or custom scriptsMakefile → test target.github/workflows/ → CI test commandstox.ini → test commandsIf {{test_command}} is defined:
{{test_command}}
Basic test run:
pytest
Verbose output:
pytest -v
With coverage:
pytest --cov=src --cov-report=html --cov-report=term
Specific file:
pytest tests/test_example.py
Specific test:
pytest tests/test_example.py::test_function_name
Pattern matching:
pytest -k "test_user" # Run tests matching pattern
Markers:
pytest -m "not slow" # Skip slow tests
pytest -m "integration" # Only integration tests
Parallel execution:
pytest -n auto # Requires pytest-xdist
Stop on first failure:
pytest -x
Show print output:
pytest -s
Basic test run:
npm test
# or
yarn test
Watch mode:
npm test -- --watch
Coverage:
npm test -- --coverage
Specific file:
npm test -- tests/example.test.js
Pattern matching:
npm test -- --testNamePattern="user"
Update snapshots:
npm test -- --updateSnapshot
Verbose:
npm test -- --verbose
Run tests:
npm run test
# or
vitest
Watch mode:
vitest --watch
Coverage:
vitest --coverage
UI mode:
vitest --ui
Run all tests:
go test ./...
Verbose:
go test -v ./...
Coverage:
go test -cover ./...
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out
Specific package:
go test ./pkg/mypackage
Run specific test:
go test -run TestFunctionName
Parallel:
go test -parallel 4 ./...
Benchmarks:
go test -bench=. ./...
Run all tests:
cargo test
Verbose:
cargo test -- --nocapture
Specific test:
cargo test test_name
Documentation tests:
cargo test --doc
Integration tests:
cargo test --test integration_test_name
Run all tests:
rspec
Specific file:
rspec spec/models/user_spec.rb
Specific test:
rspec spec/models/user_spec.rb:42
Format:
rspec --format documentation
Run tests:
mvn test
Skip tests:
mvn install -DskipTests
Specific test:
mvn test -Dtest=TestClassName
Run tests:
./gradlew test
Continuous:
./gradlew test --continuous
Specific test:
./gradlew test --tests TestClassName
Run tests before commit:
# Add to pre-commit hook
git add -A
{{test_command}}
git commit -m "message"
Run tests with timeout:
# Python
pytest --timeout=300
# JavaScript
npm test -- --testTimeout=5000
Run failed tests only:
# Python
pytest --lf # last failed
pytest --ff # failed first
# Jest
npm test -- --onlyFailures
Generate coverage report:
# Python
pytest --cov=src --cov-report=html
open htmlcov/index.html
# JavaScript
npm test -- --coverage
open coverage/lcov-report/index.html
Solutions:
pip install -r requirements.txt or npm installSolutions:
.env files)pytest --cache-clear or jest --clearCacheSolutions:
pytest --timeout=600 or jest testTimeoutSolutions:
pip install -e . or npm installSolutions:
--cov=src or --coverage| Framework | Run Tests | Coverage | Specific Test |
|---|---|---|---|
| pytest | pytest -v | pytest --cov=src | pytest tests/test_file.py::test_name |
| Jest | npm test | npm test -- --coverage | npm test -- file.test.js |
| Vitest | vitest | vitest --coverage | vitest file.test.ts |
| Go | go test ./... | go test -cover ./... | go test -run TestName |
| Rust | cargo test | cargo tarpaulin | cargo test test_name |
| RSpec | rspec | rspec --coverage | rspec spec/file_spec.rb:42 |