Главная
Study mode:
on
1
Introduction
2
ERT: Emacs Lisp Regression Testing
3
Assertions with `should`
4
Running a test case
5
Debug a test
6
Commercial break: Hyperbole
7
Instrument function on the fly
8
Mocking
9
cl-letf
10
Hooks
11
Side effects and initial buffer state
12
with-temp-buffer
13
make-temp-file
14
buffer-string
15
buffer-name
16
major-mode
17
unwind-protect
18
Input, with-simulated-input
19
Running all tests
20
Batch mode
21
Skipping tests
22
Conclusion
Description:
Explore the intricacies of writing test cases for GNU Hyperbole in this EmacsConf 2023 talk. Dive into Emacs Lisp Regression Testing (ERT), learning to use assertions with `should`, run and debug test cases, and instrument functions on the fly. Discover mocking techniques, understand the use of hooks, and manage side effects in testing. Master essential tools like `with-temp-buffer`, `make-temp-file`, and `unwind-protect`. Learn to simulate input, run tests in batch mode, and implement test skipping. Gain valuable insights to enhance your Emacs Lisp testing skills and contribute effectively to open-source projects.

Writing Test Cases for GNU Hyperbole: Lessons Learned - EmacsConf 2023

EmacsConf and Emacs hangouts
Add to list