Test unit
Runs the monitor engine's unit test suite (tests/unit/) — fast, isolated pytest tests with no subprocess/install-flow dependencies. Use when asked to run unit tests, check the engine's core logic, or verify a change to a single script didn't break its contracts.From its SKILL.md
npx -y skills add ojaswiat/monitor-tools --skill test-unitAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.2 KB, as published. Nobody here has run it
test-unit
Runs tests/unit/ — one function/behavior at a time, each against a fresh
tmp_path scratch project (via tests/conftest.py's project_root
fixture), never this repo's own real monitor/ directory.
Flow
- Ensure pytest is available:
python3 -m pip install -r requirements-dev.txt -q(skip if already importable — check withpython3 -c "import pytest"first, only install on failure). - Run:
PYTHONPATH=plugins/monitor/skills/monitor/scripts pytest tests/unit/ -v - Relay the pass/fail summary and, on any failure, the failing test names and assertion output verbatim — don't paraphrase a traceback.
Notes
- This skill is not part of the
monitorplugin; it is never copied intoplugins/monitor/. - Distinct from
test-integration(multi-script flows) andtest-e2e(live dogfood drill against real cloned repos, manual/on-demand only).