all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Perl and Emacs: Developing tests for progmodes
@ 2020-09-03 13:42 Harald Jörg
  2020-09-03 15:52 ` Stefan Monnier
  2020-09-03 17:34 ` Eli Zaretskii
  0 siblings, 2 replies; 11+ messages in thread
From: Harald Jörg @ 2020-09-03 13:42 UTC (permalink / raw)
  To: emacs-devel; +Cc: Stefan Kangas, Stefan Monnier

Hi emacs-devel,

Emacs comes with two modes to edit Perl sources: the rather
lightweight perl-mode, and the not-so-lightweight cperl-mode. Two
weeks ago I wrote a first ERT test for a bug fix in cperl-mode in
test/lisp/progmodes/cperl-mode-tests.el.

This test has been rewritten so that it can be applied to both
cperl-mode and perl-mode, which is nice.

However, there are bugs in cperl-mode which perl-mode doesn't have,
mostly because perl-mode doesn't offer the functions which fail in the
first place.  So, tests for these bugs need to (require 'cperl-mode),
and they make no sense when testing perl-mode.  I expect most of the
upcoming tests to fall into that category.

To solve this, we could:

 - Split the tests into two and manually copy over tests where this
   makes sense or:

 - Split the tests into a "common" set plus two sets for the specific
   modes (how would the files be named in that case?) or:

 - Keep all tests in one file and tag the individual tests.

Are there any similar cases in the set of Emacs packages, or
conventions how to do it?
-- 
Cheers,
haj



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

end of thread, other threads:[~2020-10-22 19:38 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-03 13:42 Perl and Emacs: Developing tests for progmodes Harald Jörg
2020-09-03 15:52 ` Stefan Monnier
2020-09-03 20:17   ` Stefan Kangas
2020-10-22 13:42     ` Stefan Kangas
2020-10-22 15:28       ` Stefan Monnier
2020-10-22 16:32         ` Stefan Kangas
2020-10-22 16:30       ` Harald Jörg
2020-10-22 19:38         ` Stefan Kangas
2020-09-03 17:34 ` Eli Zaretskii
2020-09-03 20:00   ` Harald Jörg
2020-09-04  6:55     ` Eli Zaretskii

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.