金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

running_tests

running_tests 是面向测试与安全的 Agent Skill,来自 neurostuff/NiMARE。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

Run tests to ensure code functionality and correctness.

SKILL.md

下载 MD ↓
namerunning tests
descriptionRun tests to ensure code functionality and correctness.

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.

来源:neurostuff/NiMARE · MIT 许可 · 许可原文 · MD 为来源页保存的历史版本