unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#22235: Document new ERT function ert-summarize-tests-batch-and-exit
@ 2015-12-25 16:29 Shakthi Kannan
  2015-12-26 11:06 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Shakthi Kannan @ 2015-12-25 16:29 UTC (permalink / raw)
  To: 22235

[-- Attachment #1: Type: text/plain, Size: 56 bytes --]

$subject

-- 
Shakthi Kannan
http://www.shakthimaan.com

[-- Attachment #2: 0001-Document-new-ERT-function-ert-summarize-tests-batch-.patch --]
[-- Type: text/x-patch, Size: 1616 bytes --]

From a53e3f74d3b7017c253b869eab91f0398aba8dc0 Mon Sep 17 00:00:00 2001
From: Shakthi Kannan <author@shakthimaan.com>
Date: Fri, 25 Dec 2015 21:47:49 +0530
Subject: [PATCH] Document new ERT function ert-summarize-tests-batch-and-exit

---
 doc/misc/ert.texi | 9 +++++++++
 etc/NEWS          | 4 ++++
 2 files changed, 13 insertions(+)

diff --git a/doc/misc/ert.texi b/doc/misc/ert.texi
index 35d315c..c236323 100644
--- a/doc/misc/ert.texi
+++ b/doc/misc/ert.texi
@@ -283,6 +283,15 @@ Running Tests in Batch Mode
 failed or if anything else went wrong.  It will also print progress
 messages and error diagnostics to standard output.
 
+You can also redirect the above output to a log file, say
+@file{output.log}, and use the
+@code{ert-summarize-tests-batch-and-exit} function to produce a neat
+summary as shown below:
+
+@example
+emacs -batch -l ert -f ert-summarize-tests-batch-and-exit output.log
+@end example
+
 If ERT is not part of your Emacs distribution, you may need to use
 @code{-L /path/to/ert/} so that Emacs can find it.  You may need
 additional @code{-L} flags to ensure that @code{my-tests.el} and all the
diff --git a/etc/NEWS b/etc/NEWS
index 19c9858..f1ba79f 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -696,7 +696,11 @@ The remainder were:
 
 **** The nil and list forms of `diary-display-function'.
 
++++
 ** New ERT function `ert-summarize-tests-batch-and-exit'.
+If the output of ERT tests in batch mode execution can be saved to a
+log file, then it can be passed as an argument to the above function
+to produce a neat summary.
 
 ** New js.el option `js-indent-first-init'.
 
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#22235: Document new ERT function ert-summarize-tests-batch-and-exit
  2015-12-25 16:29 bug#22235: Document new ERT function ert-summarize-tests-batch-and-exit Shakthi Kannan
@ 2015-12-26 11:06 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2015-12-26 11:06 UTC (permalink / raw)
  To: Shakthi Kannan; +Cc: 22235

> Date: Fri, 25 Dec 2015 21:59:44 +0530
> From: Shakthi Kannan <shakthimaan@gmail.com>
> 
> From a53e3f74d3b7017c253b869eab91f0398aba8dc0 Mon Sep 17 00:00:00 2001
> From: Shakthi Kannan <author@shakthimaan.com>
> Date: Fri, 25 Dec 2015 21:47:49 +0530
> Subject: [PATCH] Document new ERT function ert-summarize-tests-batch-and-exit

Thanks, pushed.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-26 11:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-25 16:29 bug#22235: Document new ERT function ert-summarize-tests-batch-and-exit Shakthi Kannan
2015-12-26 11:06 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).