Skip to content
This repository has been archived by the owner on Oct 10, 2021. It is now read-only.

Commit

Permalink
Add --no-instrument option. (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonmoeller authored and defunctzombie committed Nov 25, 2016
1 parent f07d842 commit 54c7556
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bin/zuul
Expand Up @@ -36,6 +36,7 @@ program
.option('--browser-output-timeout <timeout>', 'how much time to wait between two test results, default to -1 (no timeout)')
.option('--concurrency <n>', 'specify the number of concurrent browsers to test')
.option('--no-coverage', 'disable code coverage analysis with istanbul')
.option('--no-instrument', 'disable code coverage instrumentation with istanbul')
.option('--open', 'open a browser automatically. only used when --local is specified')
.parse(process.argv);

Expand All @@ -54,6 +55,7 @@ var config = {
server: program.server,
concurrency: program.concurrency,
coverage: program.coverage,
instrument: program.instrument,
open: program.open,
browser_retries: program.browserRetries && parseInt(program.browserRetries, 10),
browser_output_timeout: program.browserOutputTimeout && parseInt(program.browserOutputTimeout, 10),
Expand Down
2 changes: 1 addition & 1 deletion lib/builder-browserify.js
Expand Up @@ -97,7 +97,7 @@ function initBundler(files, config) {
debug('configuring browserify with provided options: %j', config.browserify);
configure(bundler, config.browserify);

if (config.coverage && config.local) {
if (config.coverage && config.instrument && config.local) {
debug('using istanbul transform');
bundler.transform(istanbul({
defaultIgnore: true
Expand Down

0 comments on commit 54c7556

Please sign in to comment.