elisp-testing

Community

Test Emacs Lisp with ERT mocks and fixtures.

AuthorJylhis
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: elisp-testing
Download link: https://github.com/Jylhis/skills/archive/main.zip#elisp-testing

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.