{"name":"junit-report-builder","version":"2.1.0","description":"Aimed at making it easier to build Jenkins compatible JUnit XML reports in plugins for testing frameworks","main":"src/index.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git://github.com/davidparsson/junit-report-builder.git"},"keywords":["junit","xunit","report","builder"],"author":{"name":"David Pärsson","email":"david@parsson.se"},"license":"MIT","bugs":{"url":"https://github.com/davidparsson/junit-report-builder/issues"},"homepage":"https://github.com/davidparsson/junit-report-builder","engines":{"node":">=4"},"devDependencies":{"grunt":"^0.4.5","grunt-contrib-jshint":"^0.11.2","grunt-contrib-watch":"^1.0.0","grunt-jasmine-nodejs":"1.4.0","grunt-release":"^0.12.0","jit-grunt":"^0.9.1","rimraf":"^2.3.3","time-grunt":"^1.2.1"},"dependencies":{"date-format":"0.0.2","lodash":"^4.17.15","make-dir":"^1.3.0","xmlbuilder":"^10.0.0"},"gitHead":"a6d38e1e71347404a94574cef5ce4e77eb75e176","_id":"junit-report-builder@2.1.0","_nodeVersion":"6.9.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Ioj5I4w18ZcHFaaisqCKdh1z+ipzN7sA2JB+h+WOlGcOMWm0FFN1dfxkgc2I4EXfhSP/mOfM3W43uFzEdz4sTw==","shasum":"7089dd8ae547657509b9a5eb7b5082bde22bcc7e","tarball":"http://registry-npm.ywwl.com/junit-report-builder/download/junit-report-builder-2.1.0.tgz","fileCount":9,"unpackedSize":13287,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEELxCRA9TVsSAnZWagAASdgQAKAqvZu+KR81qUht52gn\noUFwrkCiIWxBIFaQCV1srQRmquOxn9By4IQpkZGwzOW/c18xAwPw5kvBlfL6\nzqJRW+F2sxJTdVwK08KbxB2czH/K5tX7dA9y8m1uqZ4eUPLwUGMe/3UlfNaO\nO/Mg4UVbOU+O/wdh5b9EQy5/UsvwdAW4eNcjK3mQ0PzTGNNhgqImts73zRof\nCGVbUBIr5hjPhTnG6bLLAr18Tuz5wXi0ei7n9wZgXrPYy+dfw8gNyzjPAmja\nOXZHdZkbruj+MnON8geBHxXGPRZRJX+Mus+37nuO4OxgNeQJxUK0WFU/Fprx\nOuCHcd1h7/RXYOnp1o4934+HE3XbdHCyGkUY3csfnzWbnFiOgWs4T0Wq4hax\nemR2fCXgwXAlcFlarO8T/IaM6durtBRP3VFWVAWBt4ea4fIcEWR6AAg9RWuC\nttNDQi6bOxyYpQJkqFDm/InV8hqxEtA3PlQrIlFzxUg7D0JDp05i0z5nDBiq\nXW7BwzPfHG95gIC8B+8lNreju7q6aUGdQ7f9rch0o7lFv//5SgPZ97PNuTlR\nAdSv9akpdbpW2ugYK0f0dty6y/bVb3xXQosqKsGyyNZC0Ass3ovxLicnwrOM\nCJ8qg9ou3bW8yKvj03FqtrwWB1cDwfSPyTpnO853WRyd9YJj7/XYoYbKugNc\nrq7N\r\n=sWPx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCbN+V7VZMrAmMkhY+DKVLEO0ICmckRPNKFQlN2ZGXnQIhAKBexCR+3sbtOSVkvvP60y7FNmzsUbgdBC1vd+Y0Jg7W"}],"size":4479,"noattachment":false,"key":"/junit-report-builder/-/junit-report-builder-2.1.0.tgz"},"maintainers":[{"name":"david.parsson","email":"david@parsson.se"}],"_npmUser":{"name":"david.parsson","email":"david@parsson.se"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/junit-report-builder_2.1.0_1594901233551_0.86742607186777"},"_hasShrinkwrap":false,"readme":"# junit-report-builder\n\n[![Build Status](https://github.com/davidparsson/junit-report-builder/workflows/CI/badge.svg)](https://github.com/davidparsson/junit-report-builder/actions?query=workflow%3ACI)\n[![Weekly Downloads](https://img.shields.io/npm/dw/junit-report-builder.svg)](https://www.npmjs.com/package/junit-report-builder)\n\nA project aimed at making it easier to build [Jenkins](http://jenkins-ci.org/) compatible XML based JUnit reports.\n\n## Installation\n\nTo install the latest version, run:\n\n    npm install junit-report-builder --save\n\n## Usage\n\n```JavaScript\nvar builder = require('junit-report-builder');\n\n// Create a test suite\nvar suite = builder.testSuite().name('My suite');\n\n// Create a test case\nvar testCase = suite.testCase()\n  .className('my.test.Class')\n  .name('My first test');\n\n// Create another test case which is marked as failed\nvar testCase = suite.testCase()\n  .className('my.test.Class')\n  .name('My second test')\n  .failure();\n\nbuilder.writeTo('test-report.xml');\n```\n\nThis will create `test-report.xml` containing the following:\n\n```XML\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<testsuites tests=\"2\" failures=\"1\" errors=\"0\" skipped=\"0\">\n  <testsuite name=\"My suite\" tests=\"2\" failures=\"1\" errors=\"0\" skipped=\"0\">\n    <testcase classname=\"my.test.Class\" name=\"My first test\"/>\n    <testcase classname=\"my.test.Class\" name=\"My second test\">\n      <failure/>\n    </testcase>\n  </testsuite>\n</testsuites>\n```\n\nIf you want to create another report file, start by getting a new\nbuilder instance like this:\n\n```JavaScript\nbuilder = builder.newBuilder();\n```\n\nPlease refer to the [e2e_spec.coffee](spec/e2e_spec.coffee) for more details on the usage.\n\n## License\n\n[MIT](LICENSE)\n\n## Changelog\n\n### 3.2.1\n\n-   Update documentation.\n\n### 3.2.0\n\n-   Support name and test count attributes for the root test suites element. Thanks to [Simeon Cheeseman](https://github.com/SimeonC).\n-   Describe parameter types and return types with JSDoc. Thanks to [Simeon Cheeseman](https://github.com/SimeonC).\n\n### 3.1.0\n\n-   Add support for generic properties for test cases. Thanks to [Pietro Ferrulli](https://github.com/Pi-fe).\n-   Bump dependencies\n\n### 3.0.1\n\n-   Bump dependencies: lodash, make-dir, date-format, minimist\n\n### 3.0.0\n\n-   Properly prevent invalid characters from being included in the XML files.\n-   Dropped support for node.js 4 and 6\n\n### 2.1.0\n\n-   Added support for adding a `file` attribute to a test case. Thanks to [Ben Holland](https://github.com/hollandben).\n\n### 2.0.0\n\n-   Replace mkdirp by make-dir to resolve [npm advisory 1179](https://www.npmjs.com/advisories/1179).\n-   Dropped support for node.js 0.10.x and 0.12.x\n\n### 1.3.3\n\n-   Updated lodash to a version without known vulnerabilities.\n\n### 1.3.2\n\n-   Added support for emitting the type attribute for error and failure elements of test cases\n-   Added support for emitting cdata/content for the error element of a test case\n\nThanks to [Robert Turner](https://github.com/rturner-edjuster).\n\n### 1.3.1\n\n-   Update dependencies to versions without known vulnerabilities.\n\n### 1.3.0\n\n-   Support [attaching files to tests](http://kohsuke.org/2012/03/13/attaching-files-to-junit-tests/). Thanks to [anto-wahanda](https://github.com/anto-wahanda).\n\n### 1.2.0\n\n-   Support creating XML with emojis. Thanks to [ischwarz](https://github.com/ischwarz).\n\n### 1.1.1\n\n-   Changed `date-format` to be a dependency. Previously it was incorrectly set to be a devDependency. Thanks to [georgecrawford](https://github.com/georgecrawford).\n\n### 1.1.0\n\n-   Added attributes for test count, failure count, error count and skipped test count to testsuite elements\n-   Added ability to attach standard output and standard error logs to test cases\n-   Added ability set execution time for test suites\n-   Added ability set timestamp for test suites\n\n### 1.0.0\n\n-   Simplified API by making the index module export a builder instance\n\n### 0.0.2\n\n-   Corrected example in readme\n\n### 0.0.1\n\n-   Initial release\n","publish_time":1594901233668,"_cnpm_publish_time":1594901233668,"dist-tags":{"latest":"5.1.2","rc":"4.0.1-rc.0"}}