{"repo":"artberri/rollup-plugin-istanbul","free":true,"listed":false,"github":"https://github.com/artberri/rollup-plugin-istanbul","clone":"git clone https://github.com/artberri/rollup-plugin-istanbul.git","description":"Seamless integration between Rollup and Istanbul","language":"JavaScript","stars":45,"topics":["rollup","istanbul","karma","coverage","javascript","instrument","testing","automation"],"license":"MIT","category":"workflow-automation","readme_excerpt":"rollup-plugin-istanbul Seamless integration between Rollup and Istanbul. Why? If you're using Rollup to generate a standalone bundle you will probably need also to bundle your tests before running them, and if you want the code coverage report, you will need to instrument the program files before the bundle is generated to avoid instrumenting also the code of the test files. That is the reason why rollup-plugin-istanbul exists. Installation Usage Options All options are optional. include Can be a minimatch pattern or an array of minimatch patterns. If is omitted or of zero length, files should be included by default; otherwise they should only be included if the ID matches one of the patterns. exclude Can be a minimatch pattern or an array of minimatch patterns. Files to exclude, commonly the test files. instrumenterConfig An object of options that will be passed to the instrumenter. Default value: More info about options. instrumenter Can be a replacement for the istanbul library, for example isparta. It should implement the same API as istanbul. Other usage options rollup-plugin-istanbul can be used with karma or other test runners that allow preprocessors. Here you can see how to implement it with Karma with the help of the karma-rollup-preprocessor and karma-coverage: Going further, this is how you can implement it when you are using babel because you are writing ES2015 code: Example of implementation provided in examples folder. License http://opensource.org/licenses/MIT","default_branch":null,"files":null,"tree":[],"storefront":"/r/artberri","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/artberri/rollup-plugin-istanbul/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}