From 39a6ae05b0789ffeef50b1fabc58e7256169c7b6 Mon Sep 17 00:00:00 2001 From: Wei Kin Huang Date: Tue, 9 Jun 2015 10:05:35 -0400 Subject: [PATCH] Add documentation --- README.md | 14 ++++++++++++++ lib/reporter.js | 0 2 files changed, 14 insertions(+) mode change 100755 => 100644 lib/reporter.js diff --git a/README.md b/README.md index f73dbc8..c6c290e 100644 --- a/README.md +++ b/README.md @@ -223,6 +223,20 @@ coverageReporter: { } ``` +#### sourceStore +**Type:** istanbul.Store + +You can opt to specify a source store allowing for external coverage collectors access to the instrumented code. + +```javascript +coverageReporter: { + type : 'text', + dir : 'coverage/', + file : 'coverage.txt', + sourceStore : require('istanbul').Store.create('fslookup') +} +``` + #### multiple reporters You can use multiple reporters, by providing array of options. diff --git a/lib/reporter.js b/lib/reporter.js old mode 100755 new mode 100644