{"name":"zora-tap-reporter","version":"2.0.0","description":"TAP reporters for zora testing library","main":"dist/index","module":"dist/module.js","types":"dist/declarations/index.d.ts","directories":{"test":"test"},"scripts":{"build:compile":"../node_modules/.bin/tsc","build:bundle":"../node_modules/.bin/rollup -c rollup.js","build":"npm run build:compile && npm run build:bundle"},"keywords":["zora","tap","reporter","test","testing","bdd","unit","tool","productivity","browser","nodejs"],"author":{"name":"Laurent RENARD"},"license":"MIT","_id":"zora-tap-reporter@2.0.0","_nodeVersion":"12.13.1","_npmVersion":"6.13.3","dist":{"integrity":"sha512-Gdj03EdaH3b8JimaaAwBlqrtknj/z7WcBLaQO1rWdf5PIZAeR33EKPllIOZAiUXVukmJdPkIT16VsPYLXE76OA==","shasum":"eeba3fea0bcb2fea2a6afe6cb04fa0fcb3095f63","tarball":"http://registry-npm.ywwl.com/zora-tap-reporter/download/zora-tap-reporter-2.0.0.tgz","fileCount":10,"unpackedSize":26102,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd79LzCRA9TVsSAnZWagAAc3QP/jwttAA88XDjV6/I6Wyu\n0AWvxavXOg72dGVc+qlhnbRlcJFUt2y99F6in8aoPw0f7QOrThx06ma+GaR/\natHT1/8W0+gm3sHM9OCCFiKP21NcTanJl5XkC7XuarjqwohBWeb/bI8OnD+s\nfDOOnD/XALHMuAYFd8M75rHdk4SnerDniosJowTSlFM5mz4cJPA07w6pcUln\nSldK5Y7QPWSWL4abO1hC2nj4Q0R5uhgTNpUjfTihH3lvmtixTxirtZaTEiWW\nX/7HMXp3VCw0TRs+F6VEtHxZaw1W3J/UKzfAsfgpdTZaiFLGDaAk35JHT/ST\nZSgVKViPC2jsFvAoB4IDb6LJYVBLhLWsx2OOktUkCvrCj103yO4lqnnbMbfA\nwUckS4ZXzeQKgUagsilFnCueTt18gbPaC8fu/c4gJvPaSPlBRPHlqcdsH36h\nZ5iiVzaifpEUl3xXS+RAeDTuLEGsBggyrOfI9QjnZaZTeJ1+WXfT2nPsv/tX\nhwHI3kG6YvpRTViqm54YhHsi47kUhI2uCUAdfHOlg/6h7K3tR3waeZX8krOq\nMsA4t4FAoTEOVaKqigyyiX5mODRpPBp2tD3Z6rfSTGbB+1niW3bSwlDck8Ek\nOsjqQ0V1FRc/7NPWNE8et7G9061icf920TyX27k5qUUFezvDlZF2FOBq+WAl\nniD/\r\n=esQM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPsXyLZOyHXm+/mxAbci0ZJUprRhZFdJiCvEkwQqsGKwIhAMmopNwyG46MqCGMguJCK6E5re66zgXYaVffABO6Gimz"}],"size":3703,"noattachment":false,"key":"/zora-tap-reporter/-/zora-tap-reporter-2.0.0.tgz"},"maintainers":[{"name":"lorenzofox3","email":"laurent34azerty@gmail.com"}],"_npmUser":{"name":"lorenzofox3","email":"laurent34azerty@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zora-tap-reporter_2.0.0_1575998194544_0.9466132869749224"},"_hasShrinkwrap":false,"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":1575998194736,"_cnpm_publish_time":1575998194736,"dist-tags":{"latest":"2.0.0"}}