[Pkg-javascript-commits] [node-tap] 01/01: Actually continue after missing nyc failure

Jérémy Lal kapouer at moszumanska.debian.org
Sat Nov 19 13:42:53 UTC 2016


This is an automated email from the git hooks/post-receive script.

kapouer pushed a commit to branch master
in repository node-tap.

commit 55d1508a14d51cb8923aa08b658fdfe05accbea9
Author: Jérémy Lal <kapouer at melix.org>
Date:   Sat Nov 19 14:42:31 2016 +0100

    Actually continue after missing nyc failure
---
 debian/patches/use_available_modules.patch | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/debian/patches/use_available_modules.patch b/debian/patches/use_available_modules.patch
index 37371e4..0dd65d1 100644
--- a/debian/patches/use_available_modules.patch
+++ b/debian/patches/use_available_modules.patch
@@ -76,32 +76,36 @@ Last-Update: 2014-10-20
  
  main()
  
-@@ -85,7 +94,11 @@
+@@ -85,8 +94,12 @@
  
    if ((options.coverageReport || options.checkCoverage) &&
        options.files.length === 0) {
 -    runCoverageReport(options)
+-    return
 +    try {
 +      runCoverageReport(options)
++      return
 +    } catch(ex) {
 +      console.warn("Code coverage is disabled because some modules are missing");
 +    }
-     return
    }
  
-@@ -107,7 +120,11 @@
+   if (options.files.length === 0) {
+@@ -107,8 +120,12 @@
  
    /* istanbul ignore if */
    if (options.coverage && !global.__coverage__) {
 -    respawnWithCoverage(options)
+-    return
 +    try {
 +      respawnWithCoverage(options)
++      return
 +    } catch(ex) {
 +      console.warn("Code coverage is disabled because some modules are missing");
 +    }
-     return
    }
  
+   setupTapEnv(options)
 @@ -397,7 +414,7 @@
  function respawnWithCoverage (options) {
    // console.error('respawn with coverage')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-tap.git



More information about the Pkg-javascript-commits mailing list