fez-tap
v0.1.1
Published
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.
Downloads
8
Maintainers
Readme
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.
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);