refineryjs-test-runner
v0.4.0
Published
RefineryJS test runner
Downloads
6
Readme
RefineryJS test runner
A tiny test runner for RefineryJS plugins.
Usage
Note that this project also follows the structure below.
- Make
test/integration
directory in your project root.
-myProject/
|
\-test/
|
\-integration/
- [Optional] Make
init.js
which exportsdependencies
andoption
-myProject/test/integration/
|
\-init.js
- Add some directories named with your test case's name.
-myProject/test/integration/
|
+-init.js
|
\-someTestCase/
- Add
input.refjs
andexpect.js
files in there.
-myProject/test/integration/
|
+-init.js
|
\-someTestCase/
|
+-input.refjs
|
\-expect.js
Write your plugin's syntax in
input.refjs
.Write JavaScript code that your
input.refjs
should be transpiled inexpect.js
.run
$ test-refineryjs
????
PROFIT!!!