0.1.1 • Published 10 years ago

fez-tap v0.1.1

Weekly downloads
2
License
MIT License
Repository
github
Last release
10 years ago

fez-tap

TAP tests for your fez. Keep your tests ultra portable by using Tape. Run them on the backend with Fez, and on the frontend with anything else.

build status

npm install fez-tap

Pretty simple spec for Fez. It runs the tests, after all tests have completed, it checks for failures. If failures exist it throws an error ending the build process.

It prints available result data to stdout.

You can also export the parsed results by including an output file such as

spec.rule(files, 'results.json', tap());

Otherwise

spec.rule(files, tap());
var fez = require('fez');

var fez = require("fez"),
    tap = require("fez-tap");

exports.build = function(spec) {

  spec.with("tests/*.js").all(function(files) {
    spec.rule(files, 'results.json', tap());
  });
  
};

exports.default = exports.build;

fez(module);