{"_id":"@advanced-rest-client/wct-istanbub","_rev":"8-1747bd0f09f13fbb8105e74ba1f2f0b8","name":"@advanced-rest-client/wct-istanbub","dist-tags":{"latest":"0.3.0"},"versions":{"0.3.0":{"name":"@advanced-rest-client/wct-istanbub","version":"0.3.0","keywords":["web-component-tester","istanbuljs","coverage","wct"],"author":{"name":"Remco Gubbels"},"license":"ISC","_id":"@advanced-rest-client/wct-istanbub@0.3.0","maintainers":[{"name":"jarrodek","email":"jarrodek@gmail.com"}],"contributors":[{"name":"Dane O'Connor"},{"name":"Jimi van der Woning"},{"name":"Westbrook Johnson"}],"homepage":"https://github.com/advanced-rest-client/wct-istanbub","bugs":{"url":"https://github.com/advanced-rest-client/wct-istanbub/issues"},"dist":{"shasum":"53362aeaa980b94e1b9d12bf31d672b7af6d5459","tarball":"https://registry.npmjs.org/@advanced-rest-client/wct-istanbub/-/wct-istanbub-0.3.0.tgz","fileCount":7,"integrity":"sha512-3QMqMtBsEHKsRqhExD8XLzywXfweFlsETAXm8xdseZT2R+LZ7QB+fH3y8ufW4egDMwhtcb74cypxpo+qCvVlEA==","signatures":[{"sig":"MEYCIQDWyz70hhaMIsz9mXFSGgP85KRoPzSrxRLiV0N9Aw90ggIhAJPhOoY5eC9CgSlRpPAJUwunTsZsD3EmdEiG19Vnxj3j","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20278,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbNxDCRA9TVsSAnZWagAAKBAP/AtK1INZ1bpVKSYzr47+\nNGQYFhJ0+usUqsYp75pKr+CzLZv9cf3NgqZimmkxv4lmvGsiYbdKoJBzCUGb\nvgBr9jApLwoj5kJ68mzeuT8IbWdEHoTs3C4e7/FLuxt0sL/KJy1hbleKxlUm\n0tOwJnDkCCSzO6v/WwZXzAoUZM0jznUiOWRJ6O17CT1oaFhMvzMj3F9SakSU\nFaLcbpqvApci2tUIHLeCFbu5l1tHk1sKbkdrOl8M6axcxnvp6GOjSXjwFbR/\nsYzTVC3KhyhImeGyuco1cuIn4yhu4Rjlhb7FG1JeiIqCLxXCYcNgw5+JMm6Q\nGEAFM+8J9s4kgGlxXi8aHhTpx9/ewMJat54uYqRchtk9b5oBZ9WfaEASRUrZ\nUDI5NBzh36q6qYRCQS//mxwijP+MvglPb378yVB/qfzVfLTGXMd9I1h9PRwL\nKhKbXzIvY6wVWjdWs+3Uv3YjAbQvK362rosJX+z5vbxCXr7EvZkGDu9F8ea0\narJB7LjQgVxp3hUo6lW3Z2qKvV5Y4YMrAb7ceOoJ9kVsitKq3t90mIsCIrIl\nQ2WvWxrLdCUeFKmyZD+16AMq4nmtgm+zV5CARdKh5DrFEFk5WM62S47F6LBr\nJb4lVpCM8RTkIt2Q44RNQjwSi0meJ2I0RSsx26aqlwltWjAdLShVeRs4lgZN\n4S//\r\n=9Qok\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/plugin.js","gitHead":"3c685735c85da5328cf7f1a6e9a336c1220a4c3a","scripts":{"test":"nyc --reporter=lcov --reporter=text mocha"},"_npmUser":{"name":"jarrodek","email":"jarrodek@gmail.com"},"repository":{"url":"git+https://github.com/Bubbit/wct-istanbub.git","type":"git"},"wct-plugin":{"cli-options":{"exclude":{"full":"exclude","help":"Scripts to exclude from testing"},"include":{"full":"include","help":"Scripts to include in testing"},"reporters":{"full":"reporters","help":"List of reporters to use","list":true},"configFile":{"full":"config-file","help":"Istanbul configuration file","metavar":"PATH"}}},"_npmVersion":"6.8.0","description":"Instanbuljs coverage reporting for projects being tested by web-component-tester","directories":{},"_nodeVersion":"10.14.0","dependencies":{"express":"^4.16.2","minimatch":"^3.0.0","istanbul-api":"^2.0.6","polymer-build":"^3.1.1","html-script-hook":"^0.10.0","merge-source-map":"^1.1.0","convert-source-map":"^1.5.1","istanbul-lib-report":"^2.0.1","istanbul-lib-coverage":"^2.0.1","istanbul-lib-instrument":"^3.0.0","istanbul-lib-source-maps":"^2.0.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^13.3.0","chai":"^4.1.2","mocha":"^5.2.0","sinon":"^5.0.8"},"_npmOperationalInternal":{"tmp":"tmp/wct-istanbub_0.3.0_1550638146717_0.8790064006037064","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-02-20T04:49:06.557Z","modified":"2026-04-07T19:31:17.387Z","0.3.0":"2019-02-20T04:49:06.843Z"},"bugs":{"url":"https://github.com/advanced-rest-client/wct-istanbub/issues"},"author":{"name":"Remco Gubbels"},"license":"ISC","homepage":"https://github.com/advanced-rest-client/wct-istanbub","keywords":["web-component-tester","istanbuljs","coverage","wct"],"repository":{"url":"git+https://github.com/Bubbit/wct-istanbub.git","type":"git"},"description":"Instanbuljs coverage reporting for projects being tested by web-component-tester","contributors":[{"name":"Dane O'Connor"},{"name":"Jimi van der Woning"},{"name":"Westbrook Johnson"}],"maintainers":[{"email":"jarrodek@gmail.com","name":"jarrodek"},{"email":"alexperez@mulesoft.com","name":"alexperez_march_2024"},{"email":"elmellidiego@gmail.com","name":"dmacias"}],"readme":"WCT-istanbub (fork for ARC & API components)\n=============================\n\nIstanbul coverage plugin for web-component-tester.\n\nUse this plugin to collect and report test coverage (via istanbul) for\nyour project on each test run.\n\nIn order to use this coverage plugin use at least version 6.4.0 of web-component-tester\n\nCheck out this test repository for an [example](https://github.com/Bubbit/polymerTesting) with 'app' and [travis](https://travis-ci.org/Bubbit/polymerTesting) build\n\nThis version has been adjusted to work with Polymer 3 components. As a difference to the original package it always adds `**/node_modules/**` to the ignored rules. Otherwise the test won't run at all.\n\n## Installation\n\n```sh\nnpm install @advanced-rest-client/wct-istanbub --save-dev\n```\n\n## Basic Usage\n\nAdd the following configuration to web-component-tester's config file.\n\n## Example\n\n```js\nmodule.exports = {\n  plugins: {\n    istanbub: {\n      reporters: [\"text-summary\", \"lcov\"],\n      include: [\n        \"**/*.js\"\n      ],\n      exclude: [\n        \"**/test/**\",\n        \"**/demo/**\",\n        \"**/tasks/**\"\n      ]\n    }\n  }\n}\n```\n\n## Options\n\nBelow are the available configuration options:\n\n### reporters\n\nAn array of istanbul reporters to use.\n\n### include\n\nFiles to include in instrumentation, default the basepath will be added - /components/${packagename}/{includepaths}\n\n### exclude\n\nFiles to exclude from instrumentation (this trumps files 'included' with\nthe option above).\n\nBy default the '**/test/**' is excluded as istanbub crashes on some of the test tooling used by most projects\nand testing the coverage of your test files is not really useful.\n\ndefault the basepath will be added - /components/${packagename}/{excludepaths}\n\n### configFile\n\nPath to an Istanbul configuration file.\n\n### configOverrides\n\nOverrides for the default Istanbul configuration. Check the\n[default configuration](https://github.com/istanbuljs/istanbuljs/blob/master/packages/istanbul-api/lib/config.js) for\nall available options.\n\n### ignoreBasePath\n\nDon't add the basepath to the include & exclude array's for specific use-cases\n\n### npm\n\nSupport for npm based on where to retrieve basic assets from `node_modules` instead of `bower_components`\n\n### moduleResolution\n\nDefine support module import (node) or none, allowed values: `node` and `none`\n\nDefaults to `none if npm false` or `node if npm is true`\n\n### isComponentRequestOverride\n\nOverride the componentRequest check\n\n### babelPlugins\n\nAdd babel plugins to default set: [`importMeta`, `asyncGenerators`, `dynamicImport`, `objectRestSpread`, `optionalCatchBinding`, `flow`, `jsx`],\nfor example [`dotallRegex`]. Duplicates will be filtered out\n\n## Coverage Thresholds\n\nIn addition to measuring coverage, this plugin can be used to enforce\ncoverage thresholds.  If coverage does not meet the configured thresholds,\nthen the test run will fail, even if all tests passed.\n\nThis requires specifying the `thresholds` option for the plugin\n\n### writeOnlyOnSuccess `false`\n\nSet to `true` to write coverage only if all tests pass\n\n### Example\n\nThe following configuration will cause the test run to fail if less\nthan 100% of the statements in instrumented files are covered by\ntests.\n\n```js\nmodule.exports = {\n  plugins: {\n    istanbub: {\n      dir: \"./coverage\",\n      reporters: [\"text-summary\", \"lcov\"],\n      include: [\n        \"**/*.html\"\n      ],\n      exclude: [\n        \"**/test/**\"\n      ],\n      thresholds: {\n        global: {\n          statements: 100\n        }\n      }\n    }\n  }\n}\n```\n","readmeFilename":"README.md"}