0.0.5 • Published 9 years ago

guardian-runner v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
9 years ago

guardian-runner

Node console runner for guardianjs micro testing framework. The runner will watch for file changes and in the event of a change will run a test file. The assumption it makes is that you have a single test file to run which will report its result to the console.

Install

$ npm install guardian-runner

Usage

$ node_modules/guardian-runner start

By default this will run test.js and watch for file changes with a default matching the glob pattern of ['*.js', '**/*.js'] (except node_modules folder) which can be overridden with the following:

$ node_modules/guardian-runner start [testfile] [globpatterns]...

Or require the runner in code to make your own watch/runner.

var runner = require('guardian-runner');
runner('myguardiantests.js', ['source/**/*.js', '!source/build/*']);