Skip to content
Back to skills

Ci Tests

ASecurity

Run the test suite for the current repo, auto-detecting Python (pytest/uv), Node (vitest/pnpm), or Rust (cargo test)

  • 7,588 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added May 27, 2026
developmentpythonrustgobashnodeapi

Works with

  • api

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add FlorianBruniaux/claude-code-ultimate-guide --skill ci-tests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ci Tests?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ci Tests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/florianbruniaux-ci-tests/badge)](https://www.skillsdirectory.com/skills/florianbruniaux-ci-tests)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ci-tests
description: Run the test suite for the current repo, auto-detecting Python (pytest/uv), Node (vitest/pnpm), or Rust (cargo test)
argument-hint: "[file or folder target]"
allowed-tools: [Bash]
model: haiku
effort: low
disable-model-invocation: true
---

# /ci-tests: Run tests

Detects the stack and runs tests with the right command.

## Stack detection

```bash
if [ -f "uv.lock" ]; then
  STACK="python"
elif [ -f "pnpm-lock.yaml" ]; then
  STACK="node"          # pnpm + vitest
elif [ -f "package.json" ]; then
  STACK="node-npm"      # npm test (jest or the repo's own runner)
elif [ -f "Cargo.toml" ]; then
  STACK="rust"
else
  STACK="unknown"
fi
```

## Commands by stack

### Python (uv + pytest)

```bash
# All tests
uv run pytest --tb=short -q $ARGUMENTS

# With coverage
uv run pytest --cov=src --cov-report=term-missing -q

# Specific file or folder
uv run pytest $ARGUMENTS -v
```

### Node (pnpm + vitest)

```bash
# All tests
pnpm vitest run $ARGUMENTS

# With coverage
pnpm vitest run --coverage

# Watch mode (dev)
pnpm vitest
```

### Node (npm + jest)

```bash
npm test -- --passWithNoTests $ARGUMENTS
```

### Rust (cargo)

```bash
cargo test --quiet $ARGUMENTS 2>&1
```

## Expected output

```
Tests: my-api (Python/pytest)
───────────────────────────────

uv run pytest --tb=short -q

[pytest output]

✅ 42 passed in 3.1s  →  Ready to push
```

On failure:
```
❌ 2 failed

FAILED tests/test_billing.py::TestInvoice::test_promo_expired
AssertionError: expected discount=0, got discount=10

→ Fix before pushing.
```

## Usage

```
/ci-tests
/ci-tests tests/test_orders.py
/ci-tests src/components/Button.test.tsx
```

Target: $ARGUMENTS

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.