refineryjs-test-runner
v0.4.0
Published
RefineryJS test runner
Readme
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.js- Add 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!!!
