Skip to content

Check inja template syntax in test runner - #133

Open
wandernauta wants to merge 1 commit into
berthubert:mainfrom
wandernauta:template-selfcheck
Open

Check inja template syntax in test runner#133
wandernauta wants to merge 1 commit into
berthubert:mainfrom
wandernauta:template-selfcheck

Conversation

@wandernauta

Copy link
Copy Markdown
Contributor

This adds a regression test for 2bb9806. Example output:

===============================================================================
../testrunner.cc:149:
TEST CASE:  Inja template syntax
  partials/zaak.html

../testrunner.cc:157: ERROR: CHECK_NOTHROW( env.parse_template(entry.path()) ) THREW exception: "[inja.exception.parser_error] (at 3:39) unexpected '}'"

===============================================================================

Only the syntax is checked - this does not (and cannot) check that e.g. required variables are passed to the templates.

This leans on the following assumption in the README:

Alles wil draaien vanuit de root directory van het project.

This is a regression test for 2bb9806. Example output:

    ===============================================================================
    ../testrunner.cc:149:
    TEST CASE:  Inja template syntax
      partials/zaak.html

    ../testrunner.cc:157: ERROR: CHECK_NOTHROW( env.parse_template(entry.path()) ) THREW exception: "[inja.exception.parser_error] (at 3:39) unexpected '}'"

    ===============================================================================
@wandernauta

Copy link
Copy Markdown
Contributor Author

Build failure is unrelated, see #134.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant