{"name":"zora-tap-reporter","version":"1.0.2","description":"tap reporter for zora","main":"./dist/","module":"./dist/index.mjs","jsnext:main":"./src/tap.js","directories":{"test":"test"},"scripts":{"build":"rollup -c ./rollup/build.js","test":"rollup -c ./rollup/test.js | node | tap-diff"},"repository":{"type":"git","url":"git+https://github.com/lorenzofox3/zora-tap-reporter.git"},"keywords":["zora","tat","test","testing","reporter","browser","nodejs"],"author":{"name":"Laurent Renard"},"license":"MIT","bugs":{"url":"https://github.com/lorenzofox3/zora-tap-reporter/issues"},"homepage":"https://github.com/lorenzofox3/zora-tap-reporter#readme","devDependencies":{"rollup":"^0.54.1","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-node-resolve":"^3.0.2","tap-diff":"^0.1.1","tap-parser":"^7.0.0","xo":"^0.18.2","zora":"^1.1.4"},"gitHead":"b22d334444a20827a63b46e9cf603f2533d05474","_id":"zora-tap-reporter@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.8.1","_npmUser":{"name":"lorenzofox3","email":"laurent34azerty@gmail.com"},"dist":{"integrity":"sha512-zOKLj2DMm4RTJnQ19QXncfCaNb8e8IOUlSoGMSARfR8f5qJJvMvnF6CQVioXUzTKQBZWJsd0wXexCBRt2Vcekw==","shasum":"94f59f8fb04bdcd228826a32f7c37ae28e441e61","tarball":"http://registry-npm.ywwl.com/zora-tap-reporter/download/zora-tap-reporter-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKOM5llE8EBMg9kuw5PtI5cngKF+LWnrKDMeIaB018QAIgb2yw2AFRcDpozI04dhY1gIGN0MPwZLUbOo/Ipkmyp5U="}],"size":3180,"noattachment":false,"key":"/zora-tap-reporter/-/zora-tap-reporter-1.0.2.tgz"},"maintainers":[{"name":"lorenzofox3","email":"laurent34azerty@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zora-tap-reporter-1.0.2.tgz_1516635626595_0.19740190915763378"},"deprecated":"In V2 of zora the reporter is built in","readme":"# zora-tap-reporter\n\n[Test Anything Protocol](https://testanything.org/) reporters for [zora](https://github.com/lorenzofox3/zora).\n\nTwo flavors of TAP protocol which work both on the browser and on Nodejs\n\n## Install\n\n``npm install zora-tap-reporter``\n\n## TAP reporter\n\nBasic TAP reporter which outputs a TAP stream compatible with any [tape](https://github.com/substack/tape) reporter\n\n```javascript\nimport {createHarness} from 'zora';\nimport {tapReporter} from 'zora-tap-reporter';\n\nconst h = createHarness();\n\nconst {test} = h;\n\ntest(`hello world`, t => {\n    t.ok(true);\n\n    t.test('nested', t => {\n        t.eq('foo', 'fob');\n    });\n});\n\ntest(`hello world`, t => {\n    t.ok(true);\n\n    t.test('nested', t => {\n        t.eq('foo', 'fob');\n    });\n});\n\nh.report(tapReporter());\n```\n\nwill output \n\n```TAP\nTAP version 13\n# hello world\nok 1 - should be truthy\n# nested\nnot ok 2 - should be equivalent\n  ---\n    actual: \"foo\"\n    expected: \"fob\"\n    operator: \"equal\"\n    at: \" file:///Volumes/data/code/zora-reporters/tap/example.mjs:12:11\"\n  ...\n# hello world\nok 3 - should be truthy\n# nested\nnot ok 4 - should be equivalent\n  ---\n    actual: \"foo\"\n    expected: \"fob\"\n    operator: \"equal\"\n    at: \" file:///Volumes/data/code/zora-reporters/tap/example.mjs:20:11\"\n  ...\n1..4\n\n# not ok\n# success: 2\n# skipped: 0\n# failure: 2\n```\n\n## Indented TAP reporter\n\nRicher structure which can be parsed by any TAP parser and will provide better information for parsers (or downstream reporters) which understand this specific structure. Example: [tap-mocha-reporter](https://www.npmjs.com/package/tap-mocha-reporter)\n\n```javascript\nimport {createHarness} from 'zora';\nimport {indentedTapReporter} from 'zora-tap-reporter';\n\nconst h = createHarness();\n\nconst {test} = h;\n\ntest(`hello world`, t => {\n    t.ok(true);\n\n    t.test('nested', t => {\n        t.eq('foo', 'fob');\n    });\n});\n\ntest(`hello world`, t => {\n    t.ok(true);\n\n    t.test('nested', t => {\n        t.eq('foo', 'fob');\n    });\n});\n\nh.report(indentedTapReporter());\n```\n\nwill output\n\n```TAP\nTAP version 13\n# Subtest: hello world\n    ok 1 - should be truthy\n    # Subtest: nested\n        not ok 1 - should be equivalent\n          ---\n            wanted: \"fob\"\n            found: \"foo\"\n            at: \" file:///Volumes/data/code/zora-reporters/tap/example.mjs:12:11\"\n            operator: \"equal\"\n          ...\n        1..1\n    not ok 2 - nested # 5ms\n    1..2\nnot ok 1 - hello world # 7ms\n# Subtest: hello world\n    ok 1 - should be truthy\n    # Subtest: nested\n        not ok 1 - should be equivalent\n          ---\n            wanted: \"fob\"\n            found: \"foo\"\n            at: \" file:///Volumes/data/code/zora-reporters/tap/example.mjs:20:11\"\n            operator: \"equal\"\n          ...\n        1..1\n    not ok 2 - nested # 3ms\n    1..2\nnot ok 2 - hello world # 3ms\n1..2\n\n# not ok\n# success: 2\n# skipped: 0\n# failure: 2\n```\n","publish_time":1516635627794,"_cnpm_publish_time":1516635627794,"dist-tags":{"latest":"2.0.0"}}