{"name":"zora-tap-reporter","version":"1.0.1","description":"tap reporter for zora","main":"./dist/zora-tap-reporter.js","module":"./dist/zora-tap-reporter.mjs","jsnext:main":"./src/tap.js","directories":{"test":"test"},"scripts":{"build":"rollup -c ./rollup/build.js","test":"rollup -c ./rollup/test.js | node"},"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-parser":"^7.0.0","tape-run":"^3.0.1","xo":"^0.18.2","zora":"^1.1.4"},"gitHead":"066a4b063bc5ec40620ca2b3c28c03c895f631fc","_id":"zora-tap-reporter@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.8.1","_npmUser":{"name":"lorenzofox3","email":"laurent34azerty@gmail.com"},"dist":{"integrity":"sha512-fJFaE6WVLxNgpWGJEFQ/bxN6PQEGMhKi52cDNg2Bdhy5W4AnbecQEt6arepQ5VpJP5nvLJWjhHjzev9ZmpMODw==","shasum":"0504b9b188fb79fba8c711de384e025980a60951","tarball":"http://registry-npm.ywwl.com/zora-tap-reporter/download/zora-tap-reporter-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJ6cM6mhb+oEx94+ZufchxSJrUOFvOoVt2cw4OYW5M/AIhAKgTGj0JDtww71RG/sDOw3in+ys2f8D4ahvolKjtixk5"}],"size":2082,"noattachment":false,"key":"/zora-tap-reporter/-/zora-tap-reporter-1.0.1.tgz"},"maintainers":[{"name":"lorenzofox3","email":"laurent34azerty@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zora-tap-reporter-1.0.1.tgz_1516311512810_0.32898012013174593"},"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":1516311513679,"_cnpm_publish_time":1516311513679,"dist-tags":{"latest":"2.0.0"}}