Istanbul Javascript
Using istanbul with iot js.
Istanbul javascript. Istanbul s state of the art command line interface with support for. Monorepo containing the various nuts and bolts that facilitate istanbul js test instrumentation javascript 615 163 type. The istanbul community website javascript 21 21 istanbuljs. Source mapped coverage of babel and typescript projects.
All javascript instrumentation library that tracks statement branch and function coverage and reverse engineers line coverage with 100 fidelity. You can also use istanbul to instrument your iot js modules or script files. Everyone s favorite js code coverage tool. We included istanbul as part of our internal node js micro service template which means that all the new micro services will have built in istanbul integration and configuration the threshold.
Nyc s instrument command can be used to instrument source files outside of the context of your unit tests. Applications that spawn subprocesses. This monorepo contains the nuts and bolts utility libraries that facilitate istanbuljs test coverage. Since iot js is rather minimalistic in design this will require a little more effort than usual.
It allows us to more easily test api changes across coupled modules e g changes to istanbul lib coverage potentially have an effect on. Command line tools to run node unit tests with coverage turned. Module loader hooks to instrument code on the fly. Istanbul instruments your es5 and es2015 javascript code with line counters so that you can track how well your unit tests exercise your codebase.
A javascript code coverage tool written in js. By default coverage information is written under coverage this can be changed using command line options. Istanbul cover my test script js my test args note the between the command name and the arguments to be passed the cover command can be used to get a coverage object and reports for any arbitrary node script. Nyc instrument lib output.
All sources forks archived mirrors. Tutorials advanced features contributing integrations faq github. By default coverage information is written under coverage this can be changed using command line options. Yet another code coverage tool for javascript with the following features.
Istanbul v1 revised bsd license.