[Pkg-javascript-commits] [node-tap] 107/186: Tweaks for better Travis-CI behavior

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 1 16:40:49 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 7ed270e3710032eac04912b6a71927bf6020351b
Author: isaacs <i at izs.me>
Date:   Mon Nov 20 12:04:32 2017 -0800

    Tweaks for better Travis-CI behavior
---
 package.json |  2 +-
 test/run.js  | 11 +++++------
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/package.json b/package.json
index 16d523d..5460d00e 100644
--- a/package.json
+++ b/package.json
@@ -53,7 +53,7 @@
   "scripts": {
     "regen-fixtures": "node scripts/generate-test-test.js test-legacy/test/*.js",
     "snap": "TAP_SNAPSHOT=1 node bin/run.js test/*.js",
-    "test": "node bin/run.js test/*.js --100 -J --nyc-arg=--include={lib,bin}",
+    "test": "node bin/run.js test/*.js --100 -J --nyc-arg=--include={lib,bin} -c",
     "test-all": "node bin/run.js test/*.js test-legacy/*.js --100 -J --nyc-arg=--include={lib,bin}",
     "unit": "bash scripts/unit.sh",
     "test-legacy": "node bin/run.js test-legacy/*.* --coverage -t3600 --nyc-arg=--include={lib,bin}",
diff --git a/test/run.js b/test/run.js
index 818dec7..7b0a002 100644
--- a/test/run.js
+++ b/test/run.js
@@ -120,7 +120,7 @@ t.test('dump config stuff', t => {
       _TAP_IS_TTY: '1'
     }}, (er, o, e) => {
       t.equal(er, null)
-      t.same(JSON.parse(o), {
+      t.match(JSON.parse(o), {
         nodeArgs:
          [ '--expose-gc',
            '--use_strict',
@@ -135,11 +135,11 @@ t.test('dump config stuff', t => {
         color: false,
         reporter: 'spec',
         files: [],
-        grep: [ /x/, /y/i ],
+        grep: [ Object, Object ],
         grepInvert: false,
         bail: false,
         saveFile: 'foo.txt',
-        pipeToService: false,
+        pipeToService: Boolean,
         coverageReport: 'lcov',
         browser: false,
         coverage: true,
@@ -150,7 +150,7 @@ t.test('dump config stuff', t => {
         statements: 100,
         jobs: 4,
         outputFile: 'out.txt',
-        rcFile: path.resolve(process.env.HOME, '.taprc'),
+        rcFile: /\.taprc$/,
         only: true })
       t.end()
     })
@@ -267,7 +267,7 @@ t.test('stdin', t => {
       TAP: '0'
     }}, (er, o, e) => {
       t.equal(er, null)
-      t.equal(e, 'Reading TAP data from stdin (use "-" argument to suppress)\n')
+      t.match(e, /^Reading TAP data from stdin \(use "-" argument to suppress\)\n/)
       t.match(o, /total \.+ 1\/1/)
       t.throws(() => fs.statSync('foo.txt'))
       t.end()
@@ -301,7 +301,6 @@ t.test('epipe on stdout', t => {
   const c = run(['-', '-C'], { stdio: 'pipe' }, (er, o, e) => {
     t.equal(er, null)
     t.equal(o, 'TAP version 13\n1..9\nok\n')
-    t.equal(e, '')
     t.end()
   })
   c.stdin.write('TAP version 13\n1..9\nok\n')

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