0.4.0 • Published 10 years ago
refineryjs-test-runner v0.4.0
RefineryJS test runner
A tiny test runner for RefineryJS plugins.
Usage
Note that this project also follows the structure below.
Make
test/integrationdirectory in your project root.-myProject/ | \-test/ | \-integration/Optional Make
init.jswhich exportsdependenciesandoption-myProject/test/integration/ | \-init.jsAdd some directories named with your test case's name.
-myProject/test/integration/ | +-init.js | \-someTestCase/Add
input.refjsandexpect.jsfiles in there.-myProject/test/integration/ | +-init.js | \-someTestCase/ | +-input.refjs | \-expect.jsWrite your plugin's syntax in
input.refjs.Write JavaScript code that your
input.refjsshould be transpiled inexpect.js.run
$ test-refineryjs????
PROFIT!!!