Skip to content
gregpabian edited this page Oct 2, 2014 · 3 revisions

Overview

Bender allows using template files in your tests. You can use them to provide some common scripts or HTML for tests.

Usage

There are two kinds of templates you can use:

  • __template__.js file - to provide a common JavaScript
  • __template__.html file - to provide an HTML template

How it works

While building the tests, test builders scan all test directories specified in the configuration looking for files. When a test is built a builder seeks for it's HTML and JavaScript or Markdown file (for manual tests).

If there's no HTML with the same name as the .js/.md file, Bender will seek for a __template__.html file in the same directory level.

Also, if Bender founds __template__.js file in the same directory level, it will be used along with the .js/.md file.

Clone this wiki locally