@tradera/mocha-asimov-reporter
v1.1.1
Published
Custom mocha reporter for the Asimov Deploy Format
Downloads
2
Readme
1. Mocha-asimov-reporter
Mocha custom reporter to be used with asimov deploy -
Asimov Deploy is a simple distributed deployment tool that enables you to deploy applications to multiple machines through a central web interface.
The Mocha-Asimov-reporter allows you to write mocha tests and generate report output in a format that asimov-deploy can read.
1.1. Setup
npm install @tradera/mocha-asimov-reporter
- Add to mocha via the command line
--reporter @tradera/mocha-asimov-reporter
1.2. Output
- Reporter only supports pass/fail for asimov;
- Tests that are skipped will be ignored
1.3. Examples
Example mocha test:
describe("test mocha-asimov-reporter output", function() {
it("should pass", function() {
assert.ok(true);
});
});
Expected output:
##asimov-deploy[test='test mocha-asimov-reporter output should pass' pass='true']
Testing
yarn test