{"id":13555341,"url":"https://github.com/alex-seville/blanket","last_synced_at":"2025-05-14T11:11:22.370Z","repository":{"id":5033496,"uuid":"6192590","full_name":"alex-seville/blanket","owner":"alex-seville","description":"blanket.js is a simple code coverage library for javascript.  Designed to be easy to install and use, for both browser and nodejs.","archived":false,"fork":false,"pushed_at":"2022-12-06T22:04:22.000Z","size":7466,"stargazers_count":1397,"open_issues_count":119,"forks_count":176,"subscribers_count":32,"default_branch":"master","last_synced_at":"2025-03-20T18:09:58.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://blanketjs.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"budmc29/paypal-login","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alex-seville.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-10-12T15:56:29.000Z","updated_at":"2025-03-04T11:09:22.000Z","dependencies_parsed_at":"2022-08-06T18:01:04.460Z","dependency_job_id":null,"html_url":"https://github.com/alex-seville/blanket","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-seville%2Fblanket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-seville%2Fblanket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-seville%2Fblanket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-seville%2Fblanket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alex-seville","download_url":"https://codeload.github.com/alex-seville/blanket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244844467,"owners_count":20519789,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T12:03:09.587Z","updated_at":"2025-04-11T04:20:15.203Z","avatar_url":"https://github.com/alex-seville.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Testing Frameworks","others","Testing Frameworks [🔝](#readme)","测试框架","Coverage Reporting"],"sub_categories":["Coverage","覆盖率","A11y (accessibility)"],"readme":"# Blanket.js\n\nA seamless JavaScript code coverage library.\n\n**FYI: Please note that this repo is not actively maintained**\n\n**If you're looking for a more active project for JavaScript code coverage, I recommend [Istanbul](https://github.com/gotwarlost/istanbul).**\n\n\n[Project home page](http://blanketjs.org/)  \n[Blanket_js on Twitter](http://www.twitter.com/blanket_js) for updates and news.\n\n**NOTE: All Pull-Requests must be made into the `master` branch.**\n\n\n[![Build Status](https://travis-ci.org/alex-seville/blanket.svg)](https://travis-ci.org/alex-seville/blanket)\n[![Dependency Status](https://david-dm.org/alex-seville/blanket.svg)](https://david-dm.org/alex-seville/blanket)\n[![devDependency Status](https://david-dm.org/alex-seville/blanket/dev-status.svg)](https://david-dm.org/alex-seville/blanket#info=devDependencies)\n\n* [Getting Started](#getting-started)\n* [Philosophy](#philosophy)\n* [Mechanism](#mechanism)\n* [Grunt Integration](#grunt-integration)\n* [Compatibility \u0026 Features List](#compatibility-and-features-list)\n* [Roll Your Own](#roll-your-own)\n* [Development](#development)\n* [Contact](#contact)\n* [Contributors](#contributors)  \n* [Revision History](#revision-history)\n\n**NOTE:** Blanket.js will throw XHR cross domain errors if run with the file:// protocol.  See [Special Features Guide](docs/special_features.md) for more details and workarounds.\n\n\n## Getting Started\n\nPlease see the following guides for using Blanket.js:\n\n**Browser**\n* [Getting Started](docs/getting_started_browser.md) (Basic QUnit usage)\n* [Intermediate](docs/intermediate_browser.md) (Other test runners, global options)\n* [Advanced](docs/advanced_browser.md) (writing your own reporters/adapters)\n* [Special Features Guide](docs/special_features.md)\n\n**Node**\n* [Getting Started](docs/getting_started_node.md) (basic mocha setup)\n* [Intermediate](docs/intermediate_node.md) (mocha testrunner, travis-ci reporter)\n* [Intermediate 2](docs/intermediate_node_2.md) (mocha, htmlcov, package.json setup)\n\n**Configuration**\n* [Options](docs/options.md) (Browser and Node)\n\n\n## Philosophy\n\nBlanket.js is a code coverage tool for javascript that aims to be:\n\n1. Easy to install\n2. Easy to use\n3. Easy to understand\n\nBlanket.js can be run seamlessly or can be customized for your needs.\n\n\n## Mechanism\n\nJavaScript code coverage compliments your existing JavaScript tests by adding code coverage statistics (which lines of your source code are covered by your tests).\n\nBlanket works in a 3 step process:\n\n1. Loading your source files\n2. Parsing the code using [Esprima](http://esprima.org) and [node-falafel](https://github.com/substack/node-falafel), and instrumenting the file by adding code tracking lines.\n3. Connecting to hooks in the test runner to output the coverage details after the tests have completed.\n\n## Grunt Integration\n\nYou've got a few options for using Grunt with Blanket:\n\n**grunt-blanket**\n\nA Grunt plugin has been created to allow you to use Blanket like a \"traditional\" code coverage tool (creating instrumented copies of physical files, as opposed to live-instrumenting).\nThe plugin runs as a standlone project and can be found [here](https://github.com/alex-seville/grunt-blanket).\n\n**grunt-blanket-qunit**\n\nRuns the QUnit-based Blanket report headlessly using PhantomJS.  Results are displayed on the console, and the task will cause Grunt to fail if any of your configured coverage thresholds are not met. Minimum code coverage thresholds can be configured per-file, per-module, and globally.\n\nSee:\n\n* [Plugin Repo](https://github.com/ModelN/grunt-blanket-qunit)\n* [Blog Walkthrough](http://www.geekdave.com/2013/07/20/code-coverage-enforcement-for-qunit-using-grunt-and-blanket/)\n\n## Compatibility and Features List\n\nSee the [Compatiblity and Feature List](https://github.com/alex-seville/blanket/blob/master/docs/compatibility_and_features.md) including links to working examples.\n\n\n## Roll your own\n\n1. `git clone git@github.com:alex-seville/blanket.git`  \n2. `npm install`  \n3. Add your custom build details to the grunt.js file under `concat`\n3. `npm run build`\n\nA minified and unminfied copy of the source can be created (see the `min` task).  \n\n\n## Development\n\n**All development takes place on the `master` branch**  \n**Your pull request must pass all tests (run `npm test` to be sure) and respect all existing coverage thresholds**\n\n\n## Contact\n\nFeel free to add questions to the Issue tracker, or send them to [@blanket_js](http://www.twitter.com/blanket_js).\n\n\n## Contributors\n\nThanks to the [many people who have contributed](https://github.com/alex-seville/blanket/network/members) to the project.\n\nAnd thanks also to: [RequireJS](http://requirejs.org/), [Esprima](http://esprima.org/), [node-falafel](https://github.com/substack/node-falafel), [Mocha](http://visionmedia.github.com/mocha/), [Qunit](http://qunitjs.com/).\n\n\n## Revision History\n\nFeb 18-15 - 1.2.2\nPR's merged, but this project is not actively maintained.\n\nMay 1-13 - 1.1.4  \nLoaded reverting for grunt-blanket, branch tracking reporter fixed, coverage on-the-go (displaying coverage results while a single page is being used).  \n\nApr 28-13 - 1.1.3\nYUI support added with custom adapter (and some wrapping code).  CompoundJS support appears to be outside the scope of project.\n\n... (see [full revision history](HISTORY.md))\n\n## License\nCopyright (c) 2012-2013 Alex Seville  \nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-seville%2Fblanket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falex-seville%2Fblanket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-seville%2Fblanket/lists"}