GNU bug report logs - #17797
24.3; Include ert-buffer.el in Emacs

Previous Next

Package: emacs;

Reported by: Thorsten Jolitz <tjolitz <at> gmail.com>

Date: Tue, 17 Jun 2014 15:02:01 UTC

Severity: wishlist

Tags: wontfix

Found in version 24.3

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Thorsten Jolitz <tjolitz <at> gmail.com>
To: 17797 <at> debbugs.gnu.org
Subject: bug#17797: 24.3; Include ert-buffer.el in Emacs
Date: Tue, 17 Jun 2014 15:32:38 +0200
The library 'ert-buffer.el', which does not seem to have a repository
nor to be included in any package repo, but can easily be found via a
web-search, offers some fundamental extensions to ERT functionality in
Emacs core and should thus be included in core.

In summary, it allows to create ert-Buf objects either from string or
from an existing buffer and run tests comparing:

 - point
 - mark
 - content
 - return-value

Since the buffer is such a core concept of Emacs, comparing buffers
seems like a core task in testing. Library ert-buffer.el implements all
the necessary functionality, so that creating this kind of tests is
really fast, even when (sometimes big and complex) real-world
files/buffers are used for testing.

The functionality of ert-buffer.el might potentially be re-implemented
many times when ERT tests that compare buffers are written. Its choice
of criteria for comparing buffers seems pragmatic, keepings things
simple, and thus making it easy to write buffer-tests.

-- 
cheers,
Thorsten





This bug report was last modified 4 years and 191 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.