unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Stefan Kangas <stefan@marxist.se>, emacs-devel@gnu.org
Subject: Re: master 12ca463 1/4: ; * test/lisp/textmodes/css-mode-tests.el: Add TODO.
Date: Tue, 22 Sep 2020 22:32:28 +0300	[thread overview]
Message-ID: <62c23861-62e0-2aab-7feb-70c03ea58fdf@yandex.ru> (raw)
In-Reply-To: <CADwFkmkuvR5p-GZjHsXDmpvEPVpEK1WCmBrrcT4_=5PXz7q+bw@mail.gmail.com>

On 21.09.2020 21:23, Stefan Kangas wrote:

> I was working under the assumption that these tests existed in their
> current form only for historical reasons.  So here I am, wreaking
> general havoc.

As was I, at a certain time in the past.

>> I'm asking as a developer from started with the latter and then switched
>> mostly to the former, due to the ease of debugging.
>>
>> The manual/indent tests also have an automated runner, which uses the
>> 'diff' program.
> 
> I think that the manual tests fail on at least two accounts:
> 
>    1. There is no automated verification of success.

They can even work semi-automatically, try:

$ cd test/manual/indent

$ make ruby.rb.test
../../../src/emacs --batch ruby.rb \
     --eval '(indent-region (point-min) (point-max) nil)' \
     --eval '(write-region (point-min) (point-max) "ruby.rb.new")'
Indenting region...
Indenting region...done
diff -u -B ruby.rb ruby.rb.new

Unfortunately, 'make all' doesn't work as expected there, only running 
that test for octave.m (which currently fails, to boot).

>    2. They don't run with "make check".

I think it can be made to run the above tests.

Wish someone with more Makefile-related experience than myself, as well 
as free time, could look into it.

> That said, please feel free to revert any commits you disagree with or
> that gets in the way of your work.  I think it goes without saying that
> I don't want to make debugging harder for you or anyone else.

I guess unless I do the above, I don't have a moral standing to revert them?

Having an ERT test per each file in there might seem a tad redundant 
given the above option, but maybe there are good reasons why nobody has 
fixed the situations yet. As long as said manual test files are present, 
in one form or another, the debugging workflows can be retained.

> But if there are limitations in debugging with ert, perhaps we should
> work on improving its capabilities?

It's capable enough in that regard (e.g. one can press 'd' and drop into 
the debugger, in the target buffer, exactly at the point of failure), 
yet still it requires more ceremony than the "manual" approach.



  parent reply	other threads:[~2020-09-22 19:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200921144653.9320.23809@vcs0.savannah.gnu.org>
     [not found] ` <20200921144656.3E99C206ED@vcs0.savannah.gnu.org>
2020-09-21 17:54   ` master 12ca463 1/4: ; * test/lisp/textmodes/css-mode-tests.el: Add TODO Dmitry Gutov
2020-09-21 18:23     ` Stefan Kangas
2020-09-22 13:33       ` Lars Ingebrigtsen
2020-09-22 13:54         ` Stefan Kangas
2020-09-22 15:06           ` Lars Ingebrigtsen
2020-09-22 18:34             ` Dmitry Gutov
2020-09-22 16:22         ` Stefan Monnier
2020-09-23 13:56           ` Stefan Kangas
2020-09-23 14:28             ` Stefan Monnier
2020-09-23 15:44               ` Stefan Kangas
2020-09-22 19:32       ` Dmitry Gutov [this message]
2020-09-23 14:06         ` Stefan Kangas

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=62c23861-62e0-2aab-7feb-70c03ea58fdf@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=stefan@marxist.se \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).