From: "Clément Pit--Claudel" <clement.pit@gmail.com>
To: emacs-devel@gnu.org
Subject: Display test suite
Date: Thu, 7 Jul 2016 11:47:54 -0400 [thread overview]
Message-ID: <577E79AA.2060208@gmail.com> (raw)
In-Reply-To: <83h9c1lbso.fsf@gnu.org>
[-- Attachment #1.1: Type: text/plain, Size: 1231 bytes --]
On 2016-07-07 11:15, Eli Zaretskii wrote:
> They also risk introducing bugs, and we don't really have a test
> suite for the display engine to be sure we didn't screw up anything.
Richard recently suggested giving Emacs the ability to take a screenshot of itself. Could we imagine using this to run regression tests of the display engine?
I already use a similar process in one of my packages: the idea is to script Emacs using a simple DSL (see https://github.com/cpitclaudel/company-coq/blob/master/etc/rebuild-screenshots.el#L419 for an example, and https://github.com/cpitclaudel/company-coq/blob/master/img/match-function.gif for the output), and record a screenshot after each command; then, I use these images to generate the README page on https://github.com/cpitclaudel/company-coq/. Since these images are checked in, any time a change has visible consequences I see it immediately, and I can use ImageMagick to get a visual diff.
Of course, it could be hard to get screeenshots to looks exactly the same for everyone. Instead, we could have a makefile target that builds a large collection of these screenshots, and another one that rebuilds it and compares against a previously generated one.
Clément.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2016-07-07 15:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-07 6:57 Dead or unused face handling code Dmitry Antipov
2016-07-07 15:15 ` Eli Zaretskii
2016-07-07 15:47 ` Clément Pit--Claudel [this message]
2016-07-07 16:29 ` Display test suite Eli Zaretskii
2016-07-07 19:40 ` Clément Pit--Claudel
2016-07-08 13:40 ` Richard Stallman
2016-07-08 13:44 ` Kaushal Modi
2016-07-08 16:19 ` Clément Pit--Claudel
2016-07-08 13:50 ` Andreas Schwab
2016-07-08 15:19 ` raman
2016-07-07 17:47 ` Dead or unused face handling code Dmitry Antipov
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=577E79AA.2060208@gmail.com \
--to=clement.pit@gmail.com \
--cc=emacs-devel@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.