running_tests

提供代码功能与正确性的验证能力,支持按需执行特定测试用例或排除耗时项的批量校验,确保修改前后行为一致,适用于开发迭代与重构过程中的质量保障。

快捷安装

在终端运行此命令,即可一键安装该 Skill 到您的 Claude 中

npx skills add neurostuff/NiMARE --skill "running_tests"

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:

    pytest nimare/tests/test_annotate_gclda.py::test_gclda_symmetric
  • For a slightly broader check without performance-heavy tests, mirror the Makefile behavior:

    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.