Run Tests
Detect the project type and run tests appropriately.
Detection and Commands
- •
Python (
pyproject.tomloruv.lock):- •
uv run pytest $ARGUMENTS - •With coverage:
uv run pytest --cov $ARGUMENTS
- •
- •
Rust (
Cargo.toml):- •
cargo test $ARGUMENTS
- •
- •
Go (
go.mod):- •
go test ./... $ARGUMENTS - •With verbose:
go test -v ./... $ARGUMENTS
- •
- •
Node.js (
package.json):- •Check for
testscript:npm test $ARGUMENTS - •Or use detected test runner (jest, vitest, etc.)
- •Check for
Options
If $ARGUMENTS contains:
- •
-vor--verbose: Run with verbose output - •
-cor--coverage: Run with coverage (if supported) - •Other args: Pass directly to the test command