Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Markdown fix

  • Loading branch information...
commit f62f496bae6df5f54e53d03de99357369e1bc286 1 parent 09ca842
@alex-seville authored
4 docs/
@@ -10,7 +10,7 @@ To begin you will need:
2. Add the following to your package.json file:
+ ```
"scripts": {
"blanket": {
"pattern": <string to match to source file paths>
@@ -18,10 +18,8 @@ To begin you will need:
/* If you omit this from your package.json, Blanket will default to "src". */
3. Add Blanket as a require to your mocha command:
```mocha --require blanket```
10 docs/
@@ -15,14 +15,10 @@ To begin you will need:
2. Download a Blanket adapter for your test runner. Currently there are adapters for [Jasmine]( and (browser based) [Mocha](
2. Reference the script and adapter in the testrunner HTML file as follows:
-<script src="blanket.min.js" data-cover-adapter="jasmine-blanket.js"></script>
+ ```<script src="blanket.min.js" data-cover-adapter="jasmine-blanket.js"></script>```
3. Add a `data-cover-only` attribute to avoid having to add `data-cover` to each script you want covered. You can pass the filter value as a string to match, an array of filename, or a regular expression:
-<script src="blanket.min.js" data-cover-adapter="jasmine-blanket.js"
- data-cover-only="['source1.js','src/source2.js']"></script>
+ ```<script src="blanket.min.js" data-cover-adapter="jasmine-blanket.js"
+ data-cover-only="['source1.js','src/source2.js']"></script>```
4. Open the test runner in the browser. The coverage details will be appended below the test results.
13 docs/
@@ -12,16 +12,13 @@ To begin you will need:
2. Add the following to top of your test runner file:
-var blanket = require("blanket");
+ ```var blanket = require("blanket");
... where `/source/` matches partially or fully the directory where the source files to be instrumented are stored.
You can also provide an array of regular expression.
3. Omitting the second line will default to "src". Additionally, any value provided there will override values set in the package.json file.
@@ -31,13 +28,11 @@ You can also provide an array of regular expression.
6. We will set the coverage threshold in the package.json file. The following will set the coverage threshold at 70%. Any tests falling below 70% will fail, and (when run on travis-ci) will cause the build to fail:
-"scripts": {
+ ```"scripts": {
"travis-cov": {
"threshold": 70
7. Use the travis-cov reporter to display coverage percentage:
Please sign in to comment.
Something went wrong with that request. Please try again.