[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: moving some indentation tests
From: |
Phillip Lord |
Subject: |
Re: moving some indentation tests |
Date: |
Sun, 02 Apr 2017 21:31:55 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Tom Tromey <address@hidden> writes:
> Currently indentation tests seem to be in test/manual/indent. However,
> most of these could be run automatically. So, I'd like to move them so
> that they'll be run by the ordinary "make check".
>
> I'm thinking I would move the files to test/data and then write a new
> test that simply iterates over these files and checking that
> re-indentation works.
My own package, assess, provides good support for this kind of
functionality. In particular, you can do this:
(assess-roundtrip-indentation=
'emacs-lisp-mode
"
(assess-with-find-file
\"~/.emacs\"
(buffer-string))")
if you want to see what you are indenting. And,
(assess-file-roundtrip-indentation=
"assess.el")
if you want to use a file.
I've been planning to add this to core -- I was hoping to wait till we
have a "core ELPA" packaging sorted out, but this might be some time. If
it would be helpful for the indentation tests, I could add this.
Phil
- moving some indentation tests, Tom Tromey, 2017/04/02
- Re: moving some indentation tests, Michael Albinus, 2017/04/02
- Re: moving some indentation tests, Eli Zaretskii, 2017/04/02
- Re: moving some indentation tests, Dmitry Gutov, 2017/04/02
- Re: moving some indentation tests,
Phillip Lord <=
- Re: moving some indentation tests, Noam Postavsky, 2017/04/02
- Re: moving some indentation tests, Phillip Lord, 2017/04/03
- Re: moving some indentation tests, Noam Postavsky, 2017/04/03
- Re: moving some indentation tests, Phillip Lord, 2017/04/03
- Re: moving some indentation tests, Noam Postavsky, 2017/04/03
- Re: moving some indentation tests, Phillip Lord, 2017/04/07
- Re: moving some indentation tests, Noam Postavsky, 2017/04/07
Re: moving some indentation tests, Tom Tromey, 2017/04/05