emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Perl and Emacs: Developing tests for progmodes


From: Stefan Monnier
Subject: Re: Perl and Emacs: Developing tests for progmodes
Date: Thu, 03 Sep 2020 11:52:02 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> 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.

I think for now we can tag the tests individually with

    (ert-deftest (...)
      (skip-unless (eq cperl-test-mode #'cperl-mode))
      ...)

We can change later if that becomes inconvenient (e.g. almost all the
tests only apply to cperl-mode).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]