bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#51941: Detect duplication of ERT tests


From: Ihor Radchenko
Subject: bug#51941: Detect duplication of ERT tests
Date: Wed, 24 Nov 2021 20:16:10 +0800

Mattias Engdegård <mattiase@acm.org> writes:

> Best practice is to run each ERT test file in a separate Emacs process. This 
> ensures isolation between the tests, which can be quite important, but also 
> permits them to be run in parallel. Easiest is to do this from a Makefile but 
> you could of course do it from a controlling Emacs process if you prefer that.

Makes sense, though it is not trivial to change the existing code.

> Now if you for some reason want to stick with running them all in a single 
> process, which I would advice against, then at least avoid the load-file if 
> the file has already been loaded. Maybe use `require` with a file argument 
> instead of load-file.

Using require indeed solved the issue.

Best,
Ihor





reply via email to

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