Skip to content
Helpers for ERT (Emacs Lisp Regression Testing)
Emacs Lisp
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.org
ert-extras.el
test-ert-extras.el

README.org

Install

(package-install-file "ert-extras.el")

Use

(require 'ert-extras.el)

are macro

(ert-deftest addition-works-as-expected ()
  (are
   (= 2 (+ 1 1))
   (= 5 (+ 2 3))
   (= 23 (+ 17 (* 2 3)))))

Test

M-x load-file test-ert-extras.el
M-x ert-run-tests-interactively
You can’t perform that action at this time.