{"_id":"mocha-circleci-reporter","_rev":"6-b67272b6e636f779f8c5d1e4be8f3c27","name":"mocha-circleci-reporter","description":"A mocha reporter that supports Circle CI, via a combined jUnit and Spec reporter output.","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"mocha-circleci-reporter","version":"0.0.1","description":"A mocha reporter that supports Cicle CI, via a combined jUnit and Spec reporter output.","main":"index.js","scripts":{"test":"mocha --harmony test/index.js"},"repository":{"type":"git","url":"git+https://github.com/sandcastle/mocha-circleci-reporter.git"},"keywords":["mocha","reporter","ci","circle","ci","build","js","javascript"],"author":{"name":"Glenn Morton"},"license":"MIT","bugs":{"url":"https://github.com/sandcastle/mocha-circleci-reporter/issues"},"homepage":"https://github.com/sandcastle/mocha-circleci-reporter#readme","devDependencies":{"assert":"^1.3.0","test-console":"^1.0.0"},"dependencies":{"mocha":"^2.2.5","mocha-junit-reporter":"^1.6.1"},"gitHead":"7dad9a72ceea1dae74e841d9e97195615419509e","_id":"mocha-circleci-reporter@0.0.1","_shasum":"9751273e919e8ea7c9e2d2128e18c374b0f4a817","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"sandcastle","email":"glenn@glennandkristy.com"},"dist":{"shasum":"9751273e919e8ea7c9e2d2128e18c374b0f4a817","tarball":"https://registry.npmjs.org/mocha-circleci-reporter/-/mocha-circleci-reporter-0.0.1.tgz","integrity":"sha512-mcr2T8P7HP63tZhAyy+Jvox7eGe7k25sV6W+Bff1s7fR6eBOi4SFbVJpIL19iT9v7LOY2h/Bm9i5aoT+/GeFIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIED3dvS3Mm8x+5QSrGQA6dwxzbJsG49O5miKgl8ZmNs4AiEA7yp04XDXgEhiO3FuUrj7gAeje/B5vuRnP5fHKPHYneo="}]},"maintainers":[{"name":"sandcastle","email":"glenn@glennandkristy.com"}],"directories":{}},"0.0.2":{"name":"mocha-circleci-reporter","version":"0.0.2","description":"A mocha reporter that supports Circle CI, via a combined jUnit and Spec reporter output.","main":"index.js","scripts":{"test":"mocha --harmony test/index.js"},"repository":{"type":"git","url":"git+https://github.com/sandcastle/mocha-circleci-reporter.git"},"keywords":["mocha","reporter","ci","circle","ci","build","js","javascript"],"author":{"name":"Glenn Morton"},"license":"MIT","bugs":{"url":"https://github.com/sandcastle/mocha-circleci-reporter/issues"},"homepage":"https://github.com/sandcastle/mocha-circleci-reporter#readme","devDependencies":{"assert":"^1.3.0","test-console":"^1.0.0"},"dependencies":{"mocha":"^3.0.0","mocha-junit-reporter":"^1.12.0"},"gitHead":"a2ff7a3360f50b7f649a596282147253e8affd72","_id":"mocha-circleci-reporter@0.0.2","_shasum":"6cbb3f1a1911ce2365e79461a156370b63790c7e","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"sandcastle","email":"glenn@glennandkristy.com"},"dist":{"shasum":"6cbb3f1a1911ce2365e79461a156370b63790c7e","tarball":"https://registry.npmjs.org/mocha-circleci-reporter/-/mocha-circleci-reporter-0.0.2.tgz","integrity":"sha512-+UOGnziZJElv6Q5kOTliOOYveSnIhKdOYg590EL62Q+C7fwmis5v+Ypc1NlYca2DXhC+cRg/WG6Bn3HgaHoXQw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6e+IupqHnrCbPezX8qNSn/f2F2kl8no2RLQlXFF2MYAIhAJUNQPucdatWjpobZS2X4Fomii3lMVrnwhk1mWe9K8+w"}]},"maintainers":[{"name":"sandcastle","email":"glenn@glennandkristy.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/mocha-circleci-reporter-0.0.2.tgz_1470957095401_0.8752298494800925"},"directories":{}},"0.0.3":{"name":"mocha-circleci-reporter","version":"0.0.3","description":"A mocha reporter that supports Circle CI, via a combined jUnit and Spec reporter output.","main":"index.js","scripts":{"test":"mocha --harmony test/index.js"},"repository":{"type":"git","url":"git+https://github.com/sandcastle/mocha-circleci-reporter.git"},"keywords":["mocha","reporter","ci","circle","ci","build","js","javascript"],"author":{"name":"Glenn Morton"},"license":"MIT","bugs":{"url":"https://github.com/sandcastle/mocha-circleci-reporter/issues"},"homepage":"https://github.com/sandcastle/mocha-circleci-reporter#readme","devDependencies":{"assert":"^1.3.0","test-console":"^1.0.0"},"dependencies":{"mocha":"^5.1.1","mocha-junit-reporter":"^1.17.0"},"gitHead":"961ded9df1348c986d8ee5038a3de346b0eec5e6","_id":"mocha-circleci-reporter@0.0.3","_npmVersion":"5.6.0","_nodeVersion":"9.2.0","_npmUser":{"name":"sandcastle","email":"glenn@glennandkristy.com"},"dist":{"integrity":"sha512-sZHmd+HH0pgQjTdk0itV2+RSOikqLo7kravRLKTmzcvyu9lA69pXd4KLAv5NMcF4c3EnSatX0iBSM4gSXFYjEw==","shasum":"5303d722cdb0390c2e03632517055c06146df6a0","tarball":"https://registry.npmjs.org/mocha-circleci-reporter/-/mocha-circleci-reporter-0.0.3.tgz","fileCount":6,"unpackedSize":97092,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa9BdQCRA9TVsSAnZWagAAoTUP/2s9KivFekRe6plrF7io\nzGYq9bhyuFtykVsYWBO87Y9blNFQsxOknYFLQFFZdQyprexEoD0FUobp2f9/\nA2t3NFzkyyF+xIDUCaNrupo5uHqbcisiyWhL/aBczidyyIKE89PtAwSyqsSt\nS0rZcGEA0cqlvM9HM0e9BFmKA+/dqtuNkLiSpgCX11qGorveKAQf6BwrW2m3\n7vC7ad+0/QG4E5bct1ZHoJ09/9saGQnQFPgtim9VunxcAfFRnmyJmorL5t6w\nAXvaFkYGEYHS4u1N/w/3rqeBVzQFNAE9vygVfuLQf8LiRuWX3cA/YhyXnKI7\nkZ+WCgRGQ6cJ3xnjdfMjzQiZL149TVYm4wRA8BejTWeZizCMIo35ALUWk1vS\nFHlU3nAtmXKQKyTXTB3LegzpCyJAdQX6wj04u2iPC211EukjfP5M8jVfzPkI\n4XJ/SdguHl9uOFfsYXiqXZr9YhZCgHhpJ7nkXcJyRaXfSZ2wNAK7w9BNrHIy\nRgjY4Yknf+Pj5qTWB0OttvZZcSKIU9c2DYBf1aB5PW53jyaJdJb85mBgyd8G\nYC1wH2ekBic7EaJaLsX4vSMEBeFqxvdf93ObP8ufrUCW6E+ckiw9C1Hz5UXq\nY35CDqGjBMyb+TS4iGtU/IXquqT/8QYnJx70y6l3u5fvNjTXvKqUMVXY4d6y\nbRza\r\n=O27w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHbX283zqv9ERyCTA3xXNL8yRict+x8pMKRk5A0upBa8AiBRQHmGzc+GcsUuLNpRfemHpgAPrVB5eSu/4QepHbYL1Q=="}]},"maintainers":[{"name":"sandcastle","email":"glenn@glennandkristy.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mocha-circleci-reporter_0.0.3_1525946191361_0.27577372221873375"},"_hasShrinkwrap":false}},"readme":"# mocha-circleci-reporter [![Build Status](https://travis-ci.org/sandcastle/mocha-circleci-reporter.svg)](https://travis-ci.org/sandcastle/mocha-circleci-reporter)\n\n> A Mocha reporter specifically for [Circle CI](https://circleci.com/).\n\n\n## Getting Started\n\nInstall the reporter as a development dependency:\n\n```sh\nnpm install mocha --save-dev\nnpm install mocha-circleci-reporter --save-dev\n```\n\nUpdate your `package.json` to use the reporter when running Mocha: \n\n```json\n{\n  \"name\": \"my-package\",\n  \"version\": \"0.0.1\",\n  \"scripts\": {\n    \"test\": \"node_modules/.bin/mocha --reporter mocha-circleci-reporter test/*.js\"\n  }\n}\n```\n\n[mocha-junit-reporter](https://github.com/michaelleeallen/mocha-junit-reporter#usage) will output\nresults to `test-results.xml` by default. CircleCI needs the results in the `$CIRCLE_TEST_REPORTS` directory.\n\nEither update your `circle.yml` to copy over the `test-results.xml:\n\n```yaml\ntest:\n  override:\n    - npm run test\n    - if [[ -e test-results.xml ]]; then cp test-results.xml $CIRCLE_TEST_REPORTS/test-results.xml; fi\n```\n\nor set the `$MOCHA_FILE`:\n\n```yaml\nmachine:\n  environment:\n      MOCHA_FILE: \"$CIRCLE_TEST_REPORTS/test-results.xml\"\n```\n\n## Background\n\n### Why another reporter?\n\nAs of Mocha 2.x, its not possible to use multple reporters out of the box.\nThis complicates things when dealing with CI systems like Circle CI that \nrequire a format such as [jUnit XML](https://windyroad.com.au/dl/Open%20Source/JUnit.xsd)\nas a lot of the goodness that is written to console when running the default\nreporter (`Spec`). \n\nTo overcome this, we combine the output of both the \nbuiltin `Spec` and `mocha-junit-report` reporters.\n\nExample spec output:\n\n![spec_output.jpg](docs/images/spec_output.jpg)\n\nExample jUnit output:\n\n![spec_output.jpg](docs/images/junit_output.jpg)\n\n\n### Mocha 3.x\n\nThere is work underway in Mocha 3.x to move to a plugin architecture that would\nmake multiple reporters dead simple, until then I hope this simplifies things.\n\nhttps://github.com/mochajs/mocha/issues/1457\n\n","maintainers":[{"name":"sandcastle","email":"glenn@glennandkristy.com"}],"time":{"modified":"2022-06-20T01:19:38.078Z","created":"2015-07-28T13:02:18.553Z","0.0.1":"2015-07-28T13:02:18.553Z","0.0.2":"2016-08-11T23:11:38.071Z","0.0.3":"2018-05-10T09:56:31.526Z"},"homepage":"https://github.com/sandcastle/mocha-circleci-reporter#readme","keywords":["mocha","reporter","ci","circle","ci","build","js","javascript"],"repository":{"type":"git","url":"git+https://github.com/sandcastle/mocha-circleci-reporter.git"},"author":{"name":"Glenn Morton"},"bugs":{"url":"https://github.com/sandcastle/mocha-circleci-reporter/issues"},"license":"MIT","readmeFilename":"README.md"}