# running tests

> Run tests to ensure code functionality and correctness.

- Skill: `majiayu000/running-tests-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/running-tests-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/running-tests-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/running-tests-2

---


# Running Tests

- DO NOT RUN ALL TESTS AT ONCE UNLESS EXPLICITLY INSTRUCTED TO DO SO.
- Prefer running only the tests relevant to the code you have modified or added.
- Use `pytest` to run tests from the repository root, for example:

  ```bash
  pytest nimare/tests/test_annotate_gclda.py::test_gclda_symmetric
  ```

- For a slightly broader check without performance-heavy tests, mirror the `Makefile` behavior:

  ```bash
  pytest -m "not performance_estimators and not performance_correctors and not performance_smoke and not cbmr_importerror" --cov=nimare nimare
  ```

- Run tests before and after significant refactors or API changes to confirm behavior is preserved.

