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)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 26 May 2009 19:15:22 +0000 (21:15 +0200)
commit6b6bf4cc75ac29ce302f6520598314d63dda5689
tree64e881ca92e07fa802eff2457f862580960abba7
parent81ef8ee019fe4d81289d30050bffd059c840ccee
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>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
xt/author/test_template.pl [new file with mode: 0755]
xt/author/valid-templates.t [new file with mode: 0644]