Repository: gotwarlost/istanbul Branch: master Commit: d38443f6a2b4 Files: 202 Total size: 707.1 KB Directory structure: gitextract_lf9e4zzz/ ├── .gitignore ├── .jshintignore ├── .jshintrc ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── coverage.json.md ├── download-escodegen-browser.sh ├── generate-pages.sh ├── ignoring-code-for-coverage.md ├── index.js ├── lib/ │ ├── assets/ │ │ ├── base.css │ │ ├── sorter.js │ │ └── vendor/ │ │ ├── prettify.css │ │ └── prettify.js │ ├── cli.js │ ├── collector.js │ ├── command/ │ │ ├── check-coverage.js │ │ ├── common/ │ │ │ └── run-with-cover.js │ │ ├── cover.js │ │ ├── help.js │ │ ├── index.js │ │ ├── instrument.js │ │ ├── report.js │ │ └── test.js │ ├── config.js │ ├── hook.js │ ├── instrumenter.js │ ├── object-utils.js │ ├── register-plugins.js │ ├── report/ │ │ ├── clover.js │ │ ├── cobertura.js │ │ ├── common/ │ │ │ └── defaults.js │ │ ├── html.js │ │ ├── index.js │ │ ├── json-summary.js │ │ ├── json.js │ │ ├── lcov.js │ │ ├── lcovonly.js │ │ ├── none.js │ │ ├── teamcity.js │ │ ├── templates/ │ │ │ ├── foot.txt │ │ │ └── head.txt │ │ ├── text-lcov.js │ │ ├── text-summary.js │ │ └── text.js │ ├── reporter.js │ ├── store/ │ │ ├── fslookup.js │ │ ├── index.js │ │ ├── memory.js │ │ └── tmp.js │ └── util/ │ ├── factory.js │ ├── file-matcher.js │ ├── file-writer.js │ ├── help-formatter.js │ ├── input-error.js │ ├── insertion-text.js │ ├── meta.js │ ├── tree-summarizer.js │ ├── writer.js │ └── yui-load-hook.js ├── misc/ │ ├── ast/ │ │ ├── assign.js │ │ ├── block-label.js │ │ ├── cond.js │ │ ├── defun-compact.js │ │ ├── defun.js │ │ ├── do-statement.js │ │ ├── dot.js │ │ ├── eq.js │ │ ├── expr.js │ │ ├── for-block.js │ │ ├── for-compact.js │ │ ├── for-multi.js │ │ ├── for-statement.js │ │ ├── forin-block.js │ │ ├── forin-compact.js │ │ ├── forin-statement.js │ │ ├── func.js │ │ ├── if-block.js │ │ ├── if-compact.js │ │ ├── if-only.js │ │ ├── if-statement.js │ │ ├── incr-slice.js │ │ ├── label.js │ │ ├── nested-if.js │ │ ├── pfcall.js │ │ ├── preamble.js │ │ ├── switch-statement.js │ │ ├── try-block.js │ │ ├── try-statement.js │ │ ├── while-block.js │ │ ├── while-compact.js │ │ ├── while-for.js │ │ └── while-statement.js │ ├── config/ │ │ ├── istanbul-config-alt.json │ │ └── istanbul-config.json │ └── samples/ │ └── coverage.js ├── package.json ├── test/ │ ├── browser/ │ │ ├── support/ │ │ │ ├── index.html │ │ │ ├── phantom-test.client.js │ │ │ ├── server.js │ │ │ └── vendor/ │ │ │ └── yui-support.js │ │ └── test-browser-instrumentation.js │ ├── cli/ │ │ ├── package.json │ │ ├── sample-project/ │ │ │ ├── .gitignore │ │ │ ├── amd/ │ │ │ │ ├── ipsum.js │ │ │ │ └── lorem.js │ │ │ ├── config-check-each.istanbul.yml │ │ │ ├── config-check-global.istanbul.yml │ │ │ ├── config-check-mixed.istanbul.yml │ │ │ ├── config.istanbul.yml │ │ │ ├── includeAllSources/ │ │ │ │ ├── unloadedFile.js │ │ │ │ └── unloadedFileWithFunctionDeclaration.js │ │ │ ├── lib/ │ │ │ │ ├── bar.js │ │ │ │ ├── foo.js │ │ │ │ └── util/ │ │ │ │ ├── bad.js │ │ │ │ ├── es-module.js │ │ │ │ ├── generate-names.js │ │ │ │ └── unused.js │ │ │ ├── test/ │ │ │ │ ├── amd-run.js │ │ │ │ ├── global-leak.js │ │ │ │ └── run.js │ │ │ └── vendor/ │ │ │ └── dummy_vendor_lib.js │ │ ├── test-base-cli.js │ │ ├── test-check-coverage-command.js │ │ ├── test-clover-report.js │ │ ├── test-cobertura-report.js │ │ ├── test-cover-command.js │ │ ├── test-html-report.js │ │ ├── test-include-pid.js │ │ ├── test-instrument-command.js │ │ ├── test-json-report.js │ │ ├── test-json-summary-report.js │ │ ├── test-lcov-report.js │ │ ├── test-lcovonly-report.js │ │ ├── test-lots-of-files.js │ │ ├── test-none-report.js │ │ ├── test-report-command.js │ │ ├── test-teamcity-report.js │ │ ├── test-test-command.js │ │ └── test-text-lcov-report.js │ ├── cli-helper.js │ ├── common.js │ ├── es6.js │ ├── helper.js │ ├── instrumentation/ │ │ ├── test-do.js │ │ ├── test-es6-arrow-fn.js │ │ ├── test-es6-export.js │ │ ├── test-es6-forof.js │ │ ├── test-es6-import.js │ │ ├── test-es6-super.js │ │ ├── test-es6-yield.js │ │ ├── test-expressions.js │ │ ├── test-for.js │ │ ├── test-forin.js │ │ ├── test-functions.js │ │ ├── test-if-with-hints.js │ │ ├── test-if.js │ │ ├── test-locations.js │ │ ├── test-misc.js │ │ ├── test-statement-with-hints.js │ │ ├── test-statement.js │ │ ├── test-strict.js │ │ ├── test-switch.js │ │ ├── test-try.js │ │ ├── test-while.js │ │ └── test-with.js │ ├── loader.js │ ├── other/ │ │ ├── config-data/ │ │ │ ├── .istanbul.yml │ │ │ └── cfg.json │ │ ├── data/ │ │ │ ├── bar.es6 │ │ │ ├── baz.js │ │ │ ├── foo.js │ │ │ └── matcher/ │ │ │ ├── .gitignore │ │ │ ├── general/ │ │ │ │ ├── .gitignore │ │ │ │ └── general.js │ │ │ ├── lib/ │ │ │ │ └── lib-top.js │ │ │ └── top.js │ │ ├── data-complete-copy/ │ │ │ ├── baz.js │ │ │ ├── fixture.xml │ │ │ ├── foo.js │ │ │ ├── myfile1 │ │ │ ├── myfile2 │ │ │ └── subdir/ │ │ │ └── x.css │ │ ├── test-collector.js │ │ ├── test-command-xface.js │ │ ├── test-config.js │ │ ├── test-file-writer.js │ │ ├── test-help-formatter.js │ │ ├── test-hook.js │ │ ├── test-index-xface.js │ │ ├── test-input-error.js │ │ ├── test-insertion-text.js │ │ ├── test-matcher.js │ │ ├── test-object-utils.js │ │ ├── test-store.js │ │ └── test-summarizer.js │ ├── run-again.js │ └── run.js ├── yui-coverage-comparison.md └── yuidoc.json ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ lib-cov .DS_Store *.seed *.log *.csv *.dat *.out *.pid *.gz pids logs results node_modules/ bower_components/ .idea/ html-report/ build/ public/ test/other/output/ test/cli/output/ npm-debug.log ================================================ FILE: .jshintignore ================================================ lib/assets/vendor test/cli/sample-project test/cli/sample-project-link test/browser/support/vendor ================================================ FILE: .jshintrc ================================================ { "bitwise": true, "camelcase": false, "curly": true, "eqeqeq": true, "forin": true, "freeze": true, "immed": true, "latedef": true, "maxlen": 150, "newcap": true, "noarg": true, "nonbsp": true, "nonew": true, "plusplus": true, "trailing": true, "undef": true, "unused": true, "strict": false, "asi": false, "boss": false, "debug": false, "eqnull": false, "esnext": false, "evil": false, "expr": false, "funcscope": false, "globalstrict": false, "iterator": false, "lastsemic": false, "laxbreak": true, "laxcomma": false, "loopfunc": false, "multistr": false, "notypeof": false, "proto": false, "scripturl": false, "smarttabs": false, "shadow": false, "sub": false, "supernew": false, "validthis": false, "noyield": false, "browser": true, "node": true, "nomen": false, "onevar": true, "passfail": false, "white": false } ================================================ FILE: .travis.yml ================================================ language: node_js node_js: - "0.10" - "0.12" sudo: false branches: except: - gh-pages script: - npm test --cover after_script: - if [[ `node --version` == *v0.12* ]]; then cat ./build/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js; fi ================================================ FILE: CHANGELOG.md ================================================ Changelog ---------
| 0.4.5 |
|
| 0.4.4 |
|
| 0.4.3 |
|
| 0.4.2 | Fix confusing error message on check-coverage failures, thanks to @isaacs/td> |
| v0.4.1 |
|
| v0.4.0 |
|
| v0.3.21 |
|
| v0.3.20 |
|
| v0.3.19 | Fix instrumenter for multiple blank array positions, thanks @alexdunphy |
| v0.3.18 | Upgrade esprima, get support for more ES6 features |
| v0.3.17 | Upgrade esprima, get correct for-of support |
| v0.3.16 |
|
| v0.3.15 |
|
| v0.3.14 | Add text-lcov report format to emit lcov to console, thanks to @bcoe |
| v0.3.13 | Fix #339 |
| v0.3.12 | Allow other-than-dot-js files to be hooked, thanks to @sethpollack |
| v0.3.11 | Avoid modification of global objects, thanks to @dominykas |
| v0.3.10 | Update escodegen to 1.6.x and add browser download script |
| v0.3.9 |
|
| v0.3.8 |
|
| v0.3.7 | Fix asset paths on windows, thanks to @juangabreil |
| v0.3.6 |
|
| v0.3.5 |
Merge #275 - `--include-all-sources` option. Thanks @gustavnikolaj The `--preload-sources` option is now deprecated and superseded by the `--include-all-sources` option instead. This provides a better coverage representation of the code that has not been included for testing. |
| v0.3.4 | Merge #219 - Support reporting within symlink/junction. Thanks to @dougwilson |
| v0.3.3 | Merge #268 - per file coverage enforcement. Thanks to @ryan-roemer |
| v0.3.2 | Republish 0.3.1 because of bad shasum |
| v0.3.1 | Fixes #249 |
| v0.3.0 |
The *reports* release. **Potentially backwards-incompatible** if you are using
undocumented features or custom report implementations.
|
| v0.2.16 | Make YUI links https-always since relative links break local filesystem use-case |
| v0.2.15 | make link protocols relative so they don't break on https connections (thanks to @yasyf) |
| v0.2.14 | Fix hook to deal with non-string/ missing filenames (thanks to @jason0x43), update dependencies |
| v0.2.13 | Add `--preload-sources` option to `cover` command to make code not required by tests to appear in the coverage report. |
| v0.2.12 | Text summary as valid markdown, thanks to @smikes |
| v0.2.11 | Allow source map generation, thanks to @jason0x43 |
| v0.2.10 | Add flag to handle sigints and dump coverage, thanks to @samccone |
| v0.2.9 | Fix #202 |
| v0.2.8 | Upgrade esprima |
| v0.2.7 |
|
| v0.2.6 |
|
| v0.2.5 |
|
| v0.2.4 |
|
| v0.2.3 |
|
| v0.2.2 | update escodegen, handlebars and resolve dependency versions |
| v0.2.1 |
|
| v0.2.0 |
|
| v0.1.46 | Fix #114 |
| v0.1.45 | Add teamcity reporter, thanks to @chrisgladd |
| v0.1.44 | Fix inconsistency in processing empty switch with latest esprima, up deps |
| v0.1.43 | Add colors to text report thanks to @runk |
| v0.1.42 | fix #78: embed source regression introduced in v0.1.38. Fix broken test for this |
| v0.1.41 | add json report to dump coverage object for certain use cases |
| v0.1.40 | forward sourceStore from lcov to html report, pull request by @vojtajina |
| v0.1.39 | add |
| v0.1.38 |
|
| v0.1.37 | --complete-copy flag contrib from @kami, correct strict mode semantics for instrumented functions |
| v0.1.36 | real quiet when --print=none specified, add repo URL to package.json, add contributors |
| v0.1.35 | accept cobertura contrib from @nbrownus, fix #52 |
| v0.1.34 | fix async reporting, update dependencies, accept html cleanup contrib from @mathiasbynens |
| v0.1.33 | initialize global coverage object before running tests to workaround mocha leak detection |
| v0.1.32 | Fix for null nodes in array expressions, add @unindented as contributor |
| v0.1.31 | Misc internal fixes and test changes |
| v0.1.30 | Write standard blurbs ("writing coverage object..." etc.) to stderr rather than stdout |
| v0.1.29 | Allow --post-require-hook to be a module that can be `require`-d |
| v0.1.28 | Add --post-require-hook switch to support use-cases similar to the YUI loader |
| v0.1.27 | Add --hook-run-in-context switch to support RequireJS modules. Thanks to @millermedeiros for the pull request |
| v0.1.26 | Add support for minimum uncovered unit for check-coverage. Fixes #25 |
| v0.1.25 | Allow for relative paths in the YUI loader hook |
| v0.1.24 | Add lcov summaries. Fixes issue #20 |
| v0.1.23 | Add ability to save a baseline coverage file for the instrument command. Fixes issue #19 |
| v0.1.22 | Add signature attribute to cobertura method tags to fix NPE by the Hudson publisher |
| v0.1.21 | Add cobertura XML report format; exprimental for now |
| v0.1.20 | Fix HTML/ lcov report interface to be more customizable for middleware needs |
| v0.1.19 | make all hooking non-destructive in that already loaded modules are never reloaded. Add self-test mode so that already loaded istanbul modules can be unloaded prior to hooking. |
| v0.1.18 | Add option to hook in non-destructive mode; i.e. the require cache is not unloaded when hooking |
| v0.1.17 | Export some more objects; undocumented for now |
| v0.1.16 | Fix npm keywords for istanbul which expects an array of strings but was being fed a single string with keywords instead |
| v0.1.15 | Add the 'check-coverage' command so that Istanbul can be used as a posttest script to enforce minimum coverage |
| v0.1.14 | Expose the experimental YUI load hook in the interface |
| v0.1.13 | Internal jshint cleanup, no features or fixes |
| v0.1.12 | Give npm the README that was getting inadvertently excluded |
| v0.1.11 | Merge pull request #14 for HTML tweaks. Thanks @davglass. Add @davglass and @nowamasa as contributors in `package.json` |
| v0.1.10 | Fix to issue #12. Do not install `uncaughtException` handler and pass input error back to CLI using a callback as opposed to throwing. |
| v0.1.9 | Attempt to create reporting directory again just before writing coverage in addition to initial creation |
| v0.1.8 | Fix issue #11. |
| v0.1.7 | Add text summary and detailed reporting available as --print [summary|detail|both|none]. summary is the default if nothing specified. |
| v0.1.6 | Handle backslashes in the file path correctly in emitted code. Fixes #9. Thanks to @nowamasa for bug report and fix |
| v0.1.5 | make object-utils.js work on a browser as-is |
| v0.1.4 | partial fix for issue #4; add titles to missing coverage spans, remove negative margin for missing if/else indicators |
| v0.1.3 | Set the environment variable running_under_istanbul to 1 when that is the case. This allows test runners that use istanbul as a library to back off on using it when set. |
| v0.1.2 | HTML reporting cosmetics. Reports now show syntax-colored JS using `prettify`. Summary tables no longer wrap in awkward places. |
| v0.1.1 | Fixes issue #1. HTML reports use sources embedded inside the file coverage objects if found rather than reading from the filesystem |
| v0.1.0 | Initial version |