Customizable HTML harness generation
Chutzpah tries its best to work for as many types and configurations of projects. However, there will always be projects where Chutzpah’s assumptions just don’t hold true. To help support these projects Chutzpah now allows you to take complete ownership of
the template it uses to generate the html test harness.
Be warned this is an advanced feature, by taking ownership of this template you are responsible for keeping it up-to-date with newer additions Chutzpah makes in later releases. Also, by editing this template Chutzpah can no longer make any guarantees that
features like Code Coverage will still work.
If that bold text did not scare you off continue on :)
These placeholders are where Chutzpah inserts text and tags it generates when examining your test files. As of version 3.0 the harness contains the following placeholders:
||The test framework file references (like QUnit.js) and any references marked as IsTestFrameworkFile.
||The code coverage framework file references (like Blanket.js). This will be empty when not running code coverage.
||The CSS references.
||Any test html template files discovered.
||Reference for all JS files discovered that your test files are dependent on.
||The reference for the file under test. This will be empty if in AMD mode.
||The AMD path to the file under test.
||A mapping of AMD paths from original test dependencies to ones generated after running TypeScript or CoffeeScript conversion.
You can edit this copy to your liking and then place it somewhere in your project. To get Chutzpah to use this template set the following in your chutzpah.json file:
Chutzpah will use this template and generate a test harnesses out of it.