]> git.eshelyaron.com Git - emacs.git/commit
Extend ert to print duration of single tests
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 14 Mar 2018 15:21:06 +0000 (16:21 +0100)
committerAndrew G Cohen <cohen@andy.bu.edu>
Tue, 11 Dec 2018 06:17:30 +0000 (14:17 +0800)
commite3338f29335e2e2b73478436266ff0944da7b925
tree5fc19a21c28004f2d8b7355a765b09f7454f4efc
parent77bf8e00b7833ec0901c88057d70d73c1c96a9da
Extend ert to print duration of single tests

* lisp/emacs-lisp/ert.el (ert-test-result): New slot ´duration'.
(ert-run-or-rerun-test): Set it.
(ert-batch-print-duration): New defvar.
(ert-run-tests-batch): Print duration if needed.

* test/Makefile.in (TEST_PRINT_TEST_DURATION): New variable.

* test/README: Explain TEST_PRINT_TEST_DURATION.
lisp/emacs-lisp/ert.el
test/Makefile.in
test/README