Test

Use EVERY TIME you need to run tests, verify tests pass, or check for regressions. ALWAYS use this instead of running eldev directly.

trevoke 82c7968 2 files · 3.0 KB Updated

File contents

/test — Run Tests with Clean Output

Run ./run-tests.sh (in this skill's directory) to execute tests. The script handles all noise filtering and outputs only a clean summary.

How to Run

.claude/skills/test/run-tests.sh [ARGUMENT]

Parse the ARGUMENTS line and pass it through:

Argument What it does
(none) / all Full suite
test/unit/foo-test.el Single file
unit / integration / acceptance Category

Resolving test names

If the argument contains / but no .el (looks like a test name, e.g. stuck-sa-filter/cancelled-project-task-skipped):

  1. Grep for deftest <name> in test/ to find the file
  2. Pass the file path to run-tests.sh

Output Format

The script returns one of:

Success: PASS: 1195 tests in 18.4s

Failure: Summary line + full failure/error details (test name, expected/actual, file:line)

Unexpected: Last 30 lines of raw output

Report the script output verbatim. Do not add commentary unless the user asks.

trevoke/org-gtd.el/tree/main/.claude/skills/test commit 82c7968a71

Frequently asked questions

npx skillmds@latest add trevoke/test