What problem does it solve?
Emacs Lisp projects often lack robust automated tests; this skill provides a structured approach to writing, running, and maintaining tests using ERT and Buttercup, with fixtures and isolation utilities.
Core Features & Use Cases
- ERT testing: define and run unit tests for Emacs Lisp code with ert-deftest, ert-with-temp-file, and batch execution.
- Mocking and isolation: supports cl-letf-based mocking, test fixtures, and state isolation to ensure deterministic results.
- Buttercup support: integrates behavior-driven testing patterns for readable test suites; suitable for library and package development.
- Use Case: when adding new Emacs Lisp features, you can write tests that cover edge cases, ensure compatibility across versions, and run tests in CI.
Quick Start
Run your Emacs Lisp tests in batch mode by loading your test file and calling ert-run-tests-batch-and-exit.