Writing Test Cases for GNU Hyperbole: Lessons Learned - EmacsConf 2023
EmacsConf and Emacs hangouts via YouTube
Overview
Syllabus
Introduction
ERT: Emacs Lisp Regression Testing
Assertions with `should`
Running a test case
Debug a test
Commercial break: Hyperbole
Instrument function on the fly
Mocking
cl-letf
Hooks
Side effects and initial buffer state
with-temp-buffer
make-temp-file
buffer-string
buffer-name
major-mode
unwind-protect
Input, with-simulated-input
Running all tests
Batch mode
Skipping tests
Conclusion
Taught by
EmacsConf and Emacs hangouts