]> git.koha-community.org Git - koha.git/commit
new author test for syntax errors in HTML templates
authorGalen Charlton <galen.charlton@liblime.com>
Wed, 29 Apr 2009 21:51:11 +0000 (16:51 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Fri, 1 May 2009 21:21:47 +0000 (16:21 -0500)
commita50c16bae2f0418653d281511195034ca0afbdbb
tree662c8627bd5c4765e3a39443c4721d69dbc17d24
parent1ecd36992628f8dfb29898bb4e2502d8bf7c3e82
new author test for syntax errors in HTML templates

Added a new author test to look for syntax errors
in the HTML templates.  Run by doing

prove xt/author/valid-templates.t

from the root of a Koha source tree.

This test will help catch the following errors:

* unbalanced TMPL_IF, TMPL_UNLESS, and TMPL_LOOP contructs, e.g.,
  cases where a TMPL_IF is not closed by a /TMPL_IF.
* references to nonexistant include files
* syntax errors within a HTML::Template::Pro tag

This test currently ignores errors related to TMPL_IF EXPR, which
is currently deprecated for use in Koha -- this may be made
stricter in the future.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
xt/author/test_template.pl [new file with mode: 0755]
xt/author/valid-templates.t [new file with mode: 0644]