adding tests
Some checks are pending
CI / shellcheck (push) Waiting to run

This commit is contained in:
Matthias Johnson 2026-02-15 12:10:09 -07:00
parent 3aa7f9e722
commit f4cb6c77f6
4 changed files with 53 additions and 1 deletions

View file

@ -37,7 +37,9 @@ Key functions: `parse_time` (time spec → OnCalendar), `_write_unit_files` (sha
Runs 58 tests against real systemd user timers covering job creation, job names, status, logs, disable/enable, notifications, time format parsing, error cases, and cleanup. All test jobs are cleaned up automatically via trap.
Tests require a real systemd user session (`systemctl --user`) and cannot run in containers. CI runs ShellCheck only; tests must be run locally before submitting changes.
Tests require a real systemd user session (`systemctl --user`) and cannot run in containers. CI runs ShellCheck only; tests are enforced locally via a pre-commit hook that also updates `badges/tests.json`.
After cloning, enable the hooks: `git config core.hooksPath .githooks`
## Notes