Skip to content
Back to skills

Test

ASecurity

Read when running or writing scip-cli tests (pytest, e2e, CI parity).

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 3, 2026
developmenttypescriptgosqlnode

Works with

  • cursor
  • cli

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned November 9, 2026

npx -y skills add flesler/scip-cli --skill test --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test?

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

Security grade badge for Test
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/flesler-test/badge)](https://www.skillsdirectory.com/skills/flesler-test)

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: test
description: Read when running or writing scip-cli tests (pytest, e2e, CI parity).
---

# scip-cli tests

Repo root only. Bootstrap: `.cursor/rules/agent.mdc` (editable install, Node for fixture index).

## Pick a suite

|Goal|Command|
|---|---|
|Pre-commit / CI / publish|`scripts/test.sh`|
|Full|`pytest`|
|CLI + fixture index|`pytest tests/test_e2e.py tests/test_e2e_analyze_patterns.py`|
|One class / test|`pytest tests/test_e2e.py::TestQuery -q`|
|Analyze unit / graph|`pytest tests/test_analyze_graph.py tests/test_analyze.py`|
|SQL perf (not correctness)|`scripts/bench.sh` — see skill `sql-bench`|

`scripts/test.sh` uses `.venv/bin/{ruff,basedpyright,pytest}`; create venv + `pip install -e ".[dev]"` if missing.

## E2e rules

- In-process only: `tests/e2e_harness.py` (`CliRunner`, `run_cli`) patches `scip_cli.commands.<cmd>.setup` — **never** subprocess `scip-cli` in tests.
- **Never** call `reindex` in e2e (mutates `~/.cache/scip-cli`).
- Session fixture `indexed_fixture` indexes `tests/fixtures/typescript-project/` once (real `scip-typescript`).
- Stable symbols/paths: add constants to `tests/fixture_catalog.py`; import in tests — do not hardcode fixture paths in test bodies.
- New CLI command: append `scip_cli.commands.<cmd>.setup` to `COMMAND_SETUP_PATHS` in `e2e_harness.py`.

## Fixture vs in-memory DB

|Need|Layer|
|---|---|
|SCIP symbol shapes, analyze false positives, CLI output|Fixture e2e (`test_e2e*.py`)|
|Tarjan, section wiring, one-off SQL plumbing|`tests/analyze_db.py` + `test_analyze_graph.py`|

Prefer fixture e2e for indexer-dependent behavior. Details: `agent.mdc` § TDD.

## After command / flag changes

Run e2e loop at minimum before commit; `scripts/test.sh` before push.

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.