To run one of your tests in the browser, you need to have a test harness page. The harness page is simply an HTML document which includes several JS files:
You may also include some DOM elements for your test to interact with, or for the testing library to display results.
For example, your test harness might look something like this:
Test for Foo
then to run the test, you simply load this page in any web browser. This works, but it presents some problems:
##Venus to the rescue Venus strives to solve these problems without re-inventing the wheel. Rather than create an entirely new testing library, we set out to create a tool to make it easier for you to work with an existing library. Here are the main benefits of Venus:
In your test file, the following annotations are supported:
.venus/templates/.... You can also specify a path relative to where the test file resides. The contents will get included into the template specified by @venus-template.
.venus/templates, no file extension) you want to include for your test suite.
Visit the project page at http://www.venusjs.org for more information.