emacs-devel
[Top][All Lists]
Advanced

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

Re: Run (some) tests more automagically?


From: Phillip Lord
Subject: Re: Run (some) tests more automagically?
Date: Wed, 24 Feb 2021 10:42:01 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> I wonder whether anybody's considered making "make" run some tests.
>
> It's a recurring issue that we make a change, and then we forget to run
> the test suite.  I mean, it's not a major problem, because it'll
> eventually get run by somebody, but I'd feel more confident in my own
> changes if I'd remember to run more tests more often.
>
> The reason we don't is because we don't want to wait for some minutes
> while running the entire suite.
>
> So here's today's not-thought-out-at-all idea: Since tests for
> lisp/foo.el live in test/lisp/foo-tests.el, could we add some Makefile
> magic to automatically run foo-tests.el if lisp/foo.el has been changed?
> Running just those tests shouldn't take too much time, and would
> probably cover 93% of the relevant code changes for foo.el.


It is supposed to do this. That was the point of moving all the tests to
a standard naming scheme in the first place.

make check-maybe

It uses out of date log files. I don't remember whether it will skip
previously failed tests the second time around which might be a problem.

Phil




reply via email to

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