1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-27 07:41:28 -08:00
emacs/test/lisp/progmodes
Mattias Engdegård 653eab4788 Keep track of matching rules in compilation-mode
When matching messages in compilation-mode, keep track of the rule
employed for each match.  This facilitates debugging and allows us to
verify that each test case really exercises the rule that we expect it
to.

Naturally this uncovered several test cases that didn't check what the
author thought they did; the rules affixed to
compile-tests--test-regexps-data are those actually used, so that the
tests still pass.

* lisp/progmodes/compile.el (compilation--message): Add 'rule' slot.
(compilation-directory-properties, compilation-error-properties)
(compilation-internal-error-properties, compilation-parse-errors)
(compilation--compat-parse-errors): Set the rule slot.
* test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data)
(compile-tests--grep-regexp-testcases)
(compile-tests--grep-regexp-tricky-testcases): Add rules to test cases.
(compile--test-error-line): Check that the rule matches what we expect.
(compile-test-grep-regexps): Adapt to test case format.
Remove now superfluous ert-info.
2020-10-19 13:00:14 +02:00
..
cperl-mode-resources cperl-mode: Delete a misleading comment, add tests for verification 2020-10-19 10:57:57 +02:00
flymake-resources Ensure flymake tests use gcc rather than $CC 2018-12-15 15:08:28 -08:00
js-resources Convert manual js indent tests to unit tests 2020-10-18 02:28:22 +02:00
ruby-mode-resources Convert manual indent test for ruby-mode into unit test 2020-09-21 18:47:55 +02:00
asm-mode-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
autoconf-tests.el Use lexical-binding in autoconf.el and add tests 2020-05-15 20:42:15 +02:00
bat-mode-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cc-mode-tests.el cc-mode: extend regexp used by ‘c-or-c++-mode’ 2020-05-09 11:30:32 +01:00
compile-tests.el Keep track of matching rules in compilation-mode 2020-10-19 13:00:14 +02:00
cperl-mode-tests.el cperl-mode: Delete a misleading comment, add tests for verification 2020-10-19 10:57:57 +02:00
elisp-mode-tests.el Convert manual indent test for elisp-mode into unit test 2020-09-21 16:46:21 +02:00
etags-tests.el Use lexical-binding in most progmodes tests 2020-04-28 13:54:00 +02:00
f90-tests.el ; Maintainer header updates 2020-07-31 09:09:39 -07:00
flymake-tests.el Use new resource directory macros in tests (Bug#43792) 2020-10-16 11:28:09 +02:00
glasses-tests.el Use lexical-binding in glasses.el and add tests 2020-05-10 17:18:03 +02:00
js-tests.el Strengthen js-mode indentation tests 2020-10-18 15:54:02 +02:00
opascal-tests.el Convert manual indent test for opascal-mode into unit test 2020-09-21 16:46:21 +02:00
pascal-tests.el Fix spurious error in beginning-of-defun in pascal-mode (bug#41740) 2020-06-22 09:51:17 +02:00
ps-mode-tests.el ; * test/lisp/progmodes/ps-mode-tests.el: Add missing backslash 2020-09-22 12:32:12 +02:00
python-tests.el ; Fix more typos 2020-10-03 12:53:51 +02:00
ruby-mode-tests.el Use new resource directory macros in tests (Bug#43792) 2020-10-16 11:28:09 +02:00
scheme-tests.el Convert manual indent test for scheme-mode into unit test 2020-09-21 18:47:55 +02:00
sql-tests.el 2020-03-29 Michael R. Mauger <michael@mauger.com> 2020-06-13 18:36:27 -04:00
subword-tests.el ; Fix license statements. 2020-08-27 02:53:25 +02:00
tcl-tests.el Use lexical-binding in most progmodes tests 2020-04-28 13:54:00 +02:00
xref-tests.el Use lexical-binding in most progmodes tests 2020-04-28 13:54:00 +02:00