]> 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)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 14 Mar 2018 15:21:06 +0000 (16:21 +0100)
commit84a946a5199d84163ee221994216360502fc85ee
treeb5903c5912bebc0bea49bf1d738c527127a095c8
parent4c33ad4a244db59bfe128aa54380904efdc775ba
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