[Pkg-javascript-commits] [node-tap] 90/186: more runner testing

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 1 16:40:47 UTC 2017


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

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

commit 79f02b7f9aa07ac7c3a60446508d3d79ee9ba04e
Author: isaacs <i at izs.me>
Date:   Tue Nov 14 17:28:59 2017 -0800

    more runner testing
---
 bin/run.js  | 3 ++-
 test/run.js | 8 +++-----
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/bin/run.js b/bin/run.js
index eaca0c3..dd46664 100755
--- a/bin/run.js
+++ b/bin/run.js
@@ -113,7 +113,8 @@ const main = _ => {
 }
 
 const constructDefaultArgs = _ => {
-  const defaultTimeout = (global.__coverage__) ? 240 : 30
+  /* istanbul ignore next */
+  const defaultTimeout = global.__coverage__ ? 240 : 30
 
   const defaultArgs = {
     nodeArgs: [],
diff --git a/test/run.js b/test/run.js
index 8e763e8..58bc67f 100644
--- a/test/run.js
+++ b/test/run.js
@@ -238,12 +238,12 @@ t.test('stdin', t => {
   const tapcode = 'TAP version 13\n1..1\nok\n'
 
   t.test('with output file', t => {
-    const c = run(['-', '-C', '-Rspec', '-ofoo.txt'], { env: {
+    const c = run(['-', '-C', '-Rspec', '-ofoo.txt', '--cov'], { env: {
       _TAP_IS_TTY: '1',
       TAP: '0'
     }}, (er, o, e) => {
       t.equal(er, null)
-      t.equal(e, '')
+      t.equal(e, 'Coverage disabled because stdin cannot be instrumented\n')
       t.match(o, '✓')
       t.equal(fs.readFileSync('foo.txt', 'utf8'), tapcode)
       fs.unlinkSync('foo.txt')
@@ -296,11 +296,9 @@ t.test('unknown arg throws', t => {
 })
 
 t.test('save file')
-t.test('coverage service test, including inferred coverage')
+t.test('coverage service piping')
 t.test('coverage report only')
-t.test('~/.taprc')
 t.test('color, -c -C TAP_COLOR=1')
-t.test('output file')
 t.test('timeouts incl --no-timeout')
 t.test('epipe')
 t.test('parallel sigil files')

-- 
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