boo-test

1.0.2 • Public • Published

boo-test

boo testing framework ported to js

usage

for a simple sample file ./.test/simple.js, containing

#!/usr/bin/env node
"use module" // an initial directive comments will be ignored
"4" // this first comment is the expected output
console.log(2+2) // this produces real output

we can run

boo-test file.js

which will:

  • run the simple.js file as a program
  • extract the expected output
  • run diff on these real & expected outputs

if successful, it means the output & expected output match. if unsuccessful, the diff is printed to screen & boo-test returns false.

Readme

Keywords

none

Package Sidebar

Install

npm i boo-test

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

2.82 kB

Total Files

6

Last publish

Collaborators

  • jauntywunderkind