all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: 17797@debbugs.gnu.org
Subject: bug#17797: 24.3; Include ert-buffer.el in Emacs
Date: Tue, 17 Jun 2014 15:32:38 +0200	[thread overview]
Message-ID: <87y4wvk6fd.fsf@gmail.com> (raw)


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






             reply	other threads:[~2014-06-17 13:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-17 13:32 Thorsten Jolitz [this message]
2014-06-19 20:46 ` bug#17797: 24.3; Include ert-buffer.el in Emacs Stefan Monnier
2020-10-23  3:00   ` Stefan Kangas
2020-12-06  9:19     ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y4wvk6fd.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --cc=17797@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.