Permalink
Browse files

repo move updates

  • Loading branch information...
1 parent 31fb0ec commit cf216de2952e76f0bdd483cf128ff78db51881ad @alex-seville committed Mar 12, 2013
View
@@ -8,7 +8,7 @@ A seamless JavaScript code coverage library.
**Notice Mar 9, 2013** - *The Blanket repo has moved from Migrii/blanket to alex-seville/blanket. Local forks need to be updated.*
-[![Build Status](https://travis-ci.org/Migrii/blanket.png)](https://travis-ci.org/Migrii/blanket)
+[![Build Status](https://travis-ci.org/alex-seville/blanket.png)](https://travis-ci.org/alex-seville/blanket)
* [Getting Started](#getting-started)
* [Philosophy](#philosophy)
@@ -21,22 +21,22 @@ A seamless JavaScript code coverage library.
* [Contributors](#contributors)
* [Revision History](#revision-history)
-**NOTE:** Blanket.js will throw XHR cross domain errors if run with the file:// protocol. See [Special Features Guide](https://github.com/Migrii/blanket/blob/master/docs/special_features.md) for more details and workarounds.
+**NOTE:** Blanket.js will throw XHR cross domain errors if run with the file:// protocol. See [Special Features Guide](https://github.com/alex-seville/blanket/blob/master/docs/special_features.md) for more details and workarounds.
## Getting Started
Please see the following guides for using Blanket.js:
**Browser**
-* [Getting Started](https://github.com/Migrii/blanket/blob/master/docs/getting_started_browser.md) (Basic QUnit usage)
-* [Intermediate](https://github.com/Migrii/blanket/blob/master/docs/intermediate_browser.md) (Other test runners, global options)
-* [Advanced](https://github.com/Migrii/blanket/blob/master/docs/advanced_browser.md) (writing your own reporters/adapters)
-* [Special Features Guide](https://github.com/Migrii/blanket/blob/master/docs/special_features.md)
+* [Getting Started](https://github.com/alex-seville/blanket/blob/master/docs/getting_started_browser.md) (Basic QUnit usage)
+* [Intermediate](https://github.com/alex-seville/blanket/blob/master/docs/intermediate_browser.md) (Other test runners, global options)
+* [Advanced](https://github.com/alex-seville/blanket/blob/master/docs/advanced_browser.md) (writing your own reporters/adapters)
+* [Special Features Guide](https://github.com/alex-seville/blanket/blob/master/docs/special_features.md)
**Node**
-* [Getting Started](https://github.com/Migrii/blanket/blob/master/docs/getting_started_node.md) (basic mocha setup)
-* [Intermediate](https://github.com/Migrii/blanket/blob/master/docs/intermediate_node.md) (mocha testrunner, travis-ci reporter)
+* [Getting Started](https://github.com/alex-seville/blanket/blob/master/docs/getting_started_node.md) (basic mocha setup)
+* [Intermediate](https://github.com/alex-seville/blanket/blob/master/docs/intermediate_node.md) (mocha testrunner, travis-ci reporter)
## Philosophy
@@ -68,12 +68,12 @@ The plugin runs as a standlone project and can be found [here](https://github.co
## Compatibility and Features List
-See the [Compatiblity and Feature List](https://github.com/Migrii/blanket/blob/master/docs/compatibility_and_features.md) including links to working examples.
+See the [Compatiblity and Feature List](https://github.com/alex-seville/blanket/blob/master/docs/compatibility_and_features.md) including links to working examples.
## Roll your own
-1. `git clone git@github.com:Migrii/blanket.git`
+1. `git clone git@github.com:alex-seville/blanket.git`
2. `npm install`
3. Add your custom build details to the grunt.js file under `concat`
3. `grunt buildit`
@@ -86,7 +86,7 @@ A minified and unminfied copy of the source can be created (see the `min` task).
**All development takes place on the MASTER branch.**
**Your pull request must pass all tests (run `npm test` to be sure) and respect all existing coverage thresholds**
-If you're looking for a place to contribute, the ['low priority' issues](https://github.com/Migrii/blanket/issues?labels=low+priority&page=1&state=open) are probably a good introduction to the project.
+If you're looking for a place to contribute, the ['low priority' issues](https://github.com/alex-seville/blanket/issues?labels=low+priority&page=1&state=open) are probably a good introduction to the project.
## Contact
@@ -116,6 +116,9 @@ And thanks also to: [RequireJS](http://requirejs.org/), [Esprima](http://esprima
## Revision History
+Mar 11-13 - 1.0.7
+Moving repo to alex-seville/blanket.
+
Feb 12-13 - 1.0.6
Added debug setting to track program flow. Minor fixes on both browser and node side.
View
@@ -8,7 +8,7 @@ It is assumed that you have already read the Intermediate guide.
Blanket uses adapters to hook into the test runner, instrument files before the tests, and display the coverage details when the tests complete.
-See the Blanket [Mocha adapter](https://raw.github.com/Migrii/blanket/master/src/adapters/mocha-blanket.js) as an example.
+See the Blanket [Mocha adapter](https://raw.github.com/alex-seville/blanket/master/src/adapters/mocha-blanket.js) as an example.
Adapters should be provided as immediately invoked function expressions, i.e.:
@@ -38,7 +38,7 @@ blanket.beforeStartTestRunner({
Custom reporters are used by Blanket to display the coverage results. Blanket comes bundled with a default reporter, but you can create your own.
-See the [simple_json_reporter](https://raw.github.com/Migrii/blanket/master/src/reporters/simple_json_reporter.js) as a very basic example of a reporter.
+See the [simple_json_reporter](https://raw.github.com/alex-seville/blanket/master/src/reporters/simple_json_reporter.js) as a very basic example of a reporter.
Reporters need to be wrapped in a define statement, and return a function that accept the coverage results object as an argument, ex:
@@ -106,4 +106,4 @@ An example coverage result object could be:
Loaders are used to provide custom requirejs loaders to blanket.
CoffeeScript files can be covered in this manner by providing an overriding version of the requirejs coffeescript plugin.
-See the [coffeescript loader](https://raw.github.com/Migrii/blanket/master/src/loaders/blanket_cs.js) as an example of a loader.
+See the [coffeescript loader](https://raw.github.com/alex-seville/blanket/master/src/loaders/blanket_cs.js) as an example of a loader.
@@ -15,46 +15,46 @@
## Browser Testing
-A classic example of browser testing with blanket coverage can be found in [/test/lib-tests](http://migrii.github.com/blanket/test/lib-tests/runner.html). This is blanket covering the blanket code (eating our own dog food).
+A classic example of browser testing with blanket coverage can be found in [/test/lib-tests](http://alex-seville.github.com/blanket/test/lib-tests/runner.html). This is blanket covering the blanket code (eating our own dog food).
Blanket can be run in any modern browser (Chrome, FF, Safari, IE9+), but will fail in IE8 or lower. You may need to use es5-shim to get it working in those environments. If you feel Blanket should support IE8, please let me know in the Issue Tracker.
## Node testing
-Node testing can be seen in [/test/test-node](https://github.com/Migrii/blanket/tree/master/test/test-node). These are blanket's own node based tests.
+Node testing can be seen in [/test/test-node](https://github.com/alex-seville/blanket/tree/master/test/test-node). These are blanket's own node based tests.
## RequireJS
If you already use RequireJS in your test runner, it's no problem, blanket will work around it.
-See an example in [/test/requirejs](http://migrii.github.com/blanket/test/requirejs/require_runner.html)
+See an example in [/test/requirejs](http://alex-seville.github.com/blanket/test/requirejs/require_runner.html)
## Mocha in the browser
Mocha can be run in the browser, and blanket seamlessly integrates with it. All you need to do is reference the mocha adapter when you reference the blanket script, and the rest is done for you.
-Check out an example in [/test/mocha-browser](http://migrii.github.com/blanket/test/mocha-browser/adapter.html)
+Check out an example in [/test/mocha-browser](http://alex-seville.github.com/blanket/test/mocha-browser/adapter.html)
## Jasmine
Blanket comes with QUnit support by default, but Jasmine (or any other test runner) can be supported using an adapter (or a custom build!).
-An example of Jasmine support can be seen in [/test/jasmine](http://migrii.github.com/blanket/test/jasmine/SpecRunner_data_adapter.html)
+An example of Jasmine support can be seen in [/test/jasmine](http://alex-seville.github.com/blanket/test/jasmine/SpecRunner_data_adapter.html)
## Backbone
-Backbone, or any external library, doesn't have any affect on blanket. The [Backbone Koans test suite](http://migrii.github.com/blanket/test/backbone-koans/index.html) (by Addy Osmani) illustrates the compatibility.
+Backbone, or any external library, doesn't have any affect on blanket. The [Backbone Koans test suite](http://alex-seville.github.com/blanket/test/backbone-koans/index.html) (by Addy Osmani) illustrates the compatibility.
## CoffeeScript in the browser
If your test runner tests source files written in coffee script, blanket still has you covered. Using a custom loader, coffeescript files are compiled, instrumented, and tested.
-See coffeescript support in [/test/coffee_script](http://migrii.github.com/blanket/test/coffee_script/index.html)
+See coffeescript support in [/test/coffee_script](http://alex-seville.github.com/blanket/test/coffee_script/index.html)
## CoffeeScript in node
@@ -66,16 +66,16 @@ See an example in [/test/test-node/]()
## Custom Reporter
-You can easily create your own reporters for blanket. See a frivolously simple example in [/test/custom-reporter](http://migrii.github.com/blanket/test/custom-reporter/index.html)
+You can easily create your own reporters for blanket. See a frivolously simple example in [/test/custom-reporter](http://alex-seville.github.com/blanket/test/custom-reporter/index.html)
## Branch Tracking
-Blanket can track untouched branches. You can view a simple example in [/test/branchTracking](http://migrii.github.com/blanket/test/branchTracking/branch_runner.html?coverage=true)
+Blanket can track untouched branches. You can view a simple example in [/test/branchTracking](http://alex-seville.github.com/blanket/test/branchTracking/branch_runner.html?coverage=true)
## How much jQuery does Bootstrap use?
You can cover dependencies of your source files to see what percentage of a certain library you use.
-You can see this in action by viewing [/test/bootstrap](http://migrii.github.com/blanket/test/bootstrap/tests/index.html) and seeing that Twitter Bootstrap uses almost 50% of jQuery code!
+You can see this in action by viewing [/test/bootstrap](http://alex-seville.github.com/blanket/test/bootstrap/tests/index.html) and seeing that Twitter Bootstrap uses almost 50% of jQuery code!
@@ -8,7 +8,7 @@ To begin you will need:
* QUnit tests for those source files
-1. Download [Blanket.js](https://raw.github.com/Migrii/blanket/master/dist/qunit/blanket.min.js) or `bower install blanket`
+1. Download [Blanket.js](https://raw.github.com/alex-seville/blanket/master/dist/qunit/blanket.min.js) or `bower install blanket`
2. Reference the script in the testrunner HTML file as follows:
```
@@ -12,9 +12,9 @@ To begin you will need:
NOTE: PhantomJS and other third-party JS runtimes may not support synchronous XHR requests. If this is the case you cannot use the `data-cover-adapter` or `data-cover-reporter` attribute. You will need to include a separate script tag for the reporter/adapter directly below the Blanket script tag.
-1. Download [Blanket.js](https://raw.github.com/Migrii/blanket/master/dist/qunit/blanket.min.js) or `bower install blanket`
+1. Download [Blanket.js](https://raw.github.com/alex-seville/blanket/master/dist/qunit/blanket.min.js) or `bower install blanket`
-2. Download a Blanket adapter for your test runner. Currently there are adapters for [Jasmine](https://raw.github.com/Migrii/blanket/master/src/adapters/jasmine-blanket.js) and (browser based) [Mocha](https://raw.github.com/Migrii/blanket/master/src/adapters/mocha-blanket.js).
+2. Download a Blanket adapter for your test runner. Currently there are adapters for [Jasmine](https://raw.github.com/alex-seville/blanket/master/src/adapters/jasmine-blanket.js) and (browser based) [Mocha](https://raw.github.com/alex-seville/blanket/master/src/adapters/mocha-blanket.js).
3. Reference the script and adapter in the testrunner HTML file as follows:
```<script src="blanket.min.js" data-cover-adapter="jasmine-blanket.js"></script>```
@@ -25,4 +25,4 @@ NOTE: PhantomJS and other third-party JS runtimes may not support synchronous XH
5. Open the test runner in the browser. The coverage details will be appended below the test results.
-6. If you will always be using the adapter, consider making a [custom build](https://github.com/Migrii/blanket/blob/master/README.md#roll-your-own) of blanket (i.e. `dist/jasmine/blanket_jasmine.js`).
+6. If you will always be using the adapter, consider making a [custom build](https://github.com/alex-seville/blanket/blob/master/README.md#roll-your-own) of blanket (i.e. `dist/jasmine/blanket_jasmine.js`).
View
@@ -1,24 +1,24 @@
{
"name": "blanket",
"description": "seamless js code coverage",
- "version": "1.0.6",
- "homepage": "https://github.com/Migrii/blanket",
+ "version": "1.0.7",
+ "homepage": "https://github.com/alex-seville/blanket",
"author": {
"name": "Alex-Seville",
- "email": "alex@migrii.com",
- "url": "http://blog.migrii.com"
+ "email": "hi@alexanderseville.com",
+ "url": "http://blanketjs.org"
},
"repository": {
"type": "git",
- "url": "git://github.com/Migrii/blanket.git"
+ "url": "git://github.com/alex-seville/blanket.git"
},
"bugs": {
- "url": "https://github.com/Migrii/blanket/issues"
+ "url": "https://github.com/alex-seville/blanket/issues"
},
"licenses": [
{
"type": "MIT",
- "url": "https://github.com/Migrii/blanket/blob/master/LICENSE-MIT"
+ "url": "https://github.com/alex-seville/blanket/blob/master/LICENSE-MIT"
}
],
"main": "src/index.js",
View
@@ -8,7 +8,7 @@ blanket.defaultReporter = function(coverage){
hasBranchTracking = Object.keys(coverage.files).some(function(elem){
return typeof coverage.files[elem].branchData !== 'undefined';
}),
- bodyContent = "<div id='blanket-main'><div class='blanket bl-title'><div class='bl-cl bl-file'><a href='http://migrii.github.com/blanket/' target='_blank' class='bl-logo'>Blanket.js</a> results</div><div class='bl-cl rs'>Coverage (%)</div><div class='bl-cl rs'>Covered/Total Smts.</div>"+(hasBranchTracking ? "<div class='bl-cl rs'>Covered/Total Branches</div>":"")+"<div style='clear:both;'></div></div>",
+ bodyContent = "<div id='blanket-main'><div class='blanket bl-title'><div class='bl-cl bl-file'><a href='http://alex-seville.github.com/blanket/' target='_blank' class='bl-logo'>Blanket.js</a> results</div><div class='bl-cl rs'>Coverage (%)</div><div class='bl-cl rs'>Covered/Total Smts.</div>"+(hasBranchTracking ? "<div class='bl-cl rs'>Covered/Total Branches</div>":"")+"<div style='clear:both;'></div></div>",
fileTemplate = "<div class='blanket {{statusclass}}'><div class='bl-cl bl-file'><span class='bl-nb'>{{fileNumber}}.</span><a href='javascript:blanket_toggleSource(\"file-{{fileNumber}}\")'>{{file}}</a></div><div class='bl-cl rs'>{{percentage}} %</div><div class='bl-cl rs'>{{numberCovered}}/{{totalSmts}}</div>"+( hasBranchTracking ? "<div class='bl-cl rs'>{{passedBranches}}/{{totalBranches}}</div>" : "" )+"<div id='file-{{fileNumber}}' class='bl-source' style='display:none;'>{{source}}</div><div style='clear:both;'></div></div>";
function blanket_toggleSource(id) {

0 comments on commit cf216de

Please sign in to comment.