0.4.0 • Published 8 years ago

refineryjs-test-runner v0.4.0

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

RefineryJS test runner

A tiny test runner for RefineryJS plugins.

Usage

Note that this project also follows the structure below.

  1. Make test/integration directory in your project root.

    -myProject/
     |
     \-test/
       |
       \-integration/
  2. Optional Make init.js which exports dependencies and option

    -myProject/test/integration/
     |
     \-init.js
  3. Add some directories named with your test case's name.

    -myProject/test/integration/
     |
     +-init.js
     |
     \-someTestCase/
  4. Add input.refjs and expect.js files in there.

    -myProject/test/integration/
     |
     +-init.js
     |
     \-someTestCase/
       |
       +-input.refjs
       |
       \-expect.js
  5. Write your plugin's syntax in input.refjs.

  6. Write JavaScript code that your input.refjs should be transpiled in expect.js.

  7. run $ test-refineryjs

  8. ????

  9. PROFIT!!!

0.4.0

8 years ago

0.3.3

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.1.0

8 years ago