From 40b50d2ff27925aa03e1e858fcab91ed3798f241 Mon Sep 17 00:00:00 2001 From: Stephen Edgar Date: Tue, 19 Jan 2016 16:18:40 +1100 Subject: [PATCH 1/8] Test on Node.js v0.10.x, v0.12.x, v4.x, and v5.x --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8c17ea84..91b317ca 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,5 +2,5 @@ language: node_js node_js: - "0.10" - "0.12" - - "iojs" - "4" + - "5" From 0f5144995a3bdd4eff81f294b7b8537116856a8a Mon Sep 17 00:00:00 2001 From: Stephen Edgar Date: Wed, 20 Jan 2016 11:06:29 +1100 Subject: [PATCH 2/8] Add back iojs --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 91b317ca..54be8e39 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,5 +2,6 @@ language: node_js node_js: - "0.10" - "0.12" + - "iojs" - "4" - "5" From 95848f4a361168a429c1b16dc6988f90f8a413a0 Mon Sep 17 00:00:00 2001 From: Alexander Kurakin Date: Sat, 30 Jan 2016 12:16:58 +0300 Subject: [PATCH 3/8] Travis: Get rid of sudo --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 54be8e39..c415b239 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: node_js +sudo: false node_js: - "0.10" - "0.12" From ba44de69977f243118076215674dbb309ad6ac6c Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 13 Feb 2016 22:49:59 -0800 Subject: [PATCH 4/8] [Tests] remove unnecessary + failing Error message assertion Fixes #255 --- test/comment.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/comment.js b/test/comment.js index 621ad970..ab00690c 100644 --- a/test/comment.js +++ b/test/comment.js @@ -30,7 +30,7 @@ tap.test('no comment', function (assert) { // Exploratory test, can we call t.comment() passing nothing? tap.test('missing argument', function (assert) { - assert.plan(2); + assert.plan(1); var test = tape.createHarness(); test.createStream(); test('missing argument', function (t) { @@ -39,7 +39,6 @@ tap.test('missing argument', function (assert) { t.end(); } catch (err) { assert.equal(err.constructor, TypeError); - assert.equal(err.message, 'Cannot call method on undefined'); } finally { assert.end(); } @@ -48,7 +47,7 @@ tap.test('missing argument', function (assert) { // Exploratory test, can we call t.comment() passing nothing? tap.test('null argument', function (assert) { - assert.plan(2); + assert.plan(1); var test = tape.createHarness(); test.createStream(); test('null argument', function (t) { @@ -57,7 +56,6 @@ tap.test('null argument', function (assert) { t.end(); } catch (err) { assert.equal(err.constructor, TypeError); - assert.equal(err.message, 'Cannot call method on null'); } finally { assert.end(); } From 545db260ee27e7121eed42e963973038013b4bd4 Mon Sep 17 00:00:00 2001 From: ronkorving Date: Sun, 14 Feb 2016 16:01:02 +0900 Subject: [PATCH 5/8] doc: Explain opts in t.test --- readme.markdown | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/readme.markdown b/readme.markdown index 56503537..18b87d24 100644 --- a/readme.markdown +++ b/readme.markdown @@ -261,12 +261,14 @@ Assert that the function call `fn()` throws an exception. `expected`, if present Assert that the function call `fn()` does not throw an exception. -## t.test(name, cb) +## t.test(name, [opts], cb) Create a subtest with a new test handle `st` from `cb(st)` inside the current test `t`. `cb(st)` will only fire when `t` finishes. Additional tests queued up after `t` will not be run until all subtests finish. +You may pass the same options that [`test()`](#testname-opts-cb) accepts. + ## t.comment(message) Print a message without breaking the tap output. (Useful when using e.g. `tap-colorize` where output is buffered & `console.log` will print in incorrect order vis-a-vis tap output.) From 13654addc410056b6dd48a35352deaa167b5bb98 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sun, 14 Feb 2016 00:29:51 -0800 Subject: [PATCH 6/8] [Deps] update `deep-equal`, `function-bind`, `glob`, `object-inspect`, `resolve`, `string.prototype.trim`, `through` --- package.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 04b02ccc..41c839c3 100644 --- a/package.json +++ b/package.json @@ -9,18 +9,18 @@ "test": "test" }, "dependencies": { - "deep-equal": "~1.0.0", + "deep-equal": "~1.0.1", "defined": "~1.0.0", - "function-bind": "~1.0.2", - "glob": "~5.0.3", + "function-bind": "~1.1.0", + "glob": "~7.0.0", "has": "~1.0.1", "inherits": "~2.0.1", "minimist": "~1.2.0", - "object-inspect": "~1.0.0", - "resolve": "~1.1.6", + "object-inspect": "~1.1.0", + "resolve": "~1.1.7", "resumer": "~0.0.0", - "string.prototype.trim": "^1.1.1", - "through": "~2.3.4" + "string.prototype.trim": "~1.1.2", + "through": "~2.3.8" }, "devDependencies": { "concat-stream": "~1.4.1", From 9a6b6559013ee732472b5e81bd106994121a068d Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sun, 14 Feb 2016 00:30:07 -0800 Subject: [PATCH 7/8] [Dev Deps] update `concat-stream`, `falafel`, `js-yaml`, `tap-parser` --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 41c839c3..b97aeb87 100644 --- a/package.json +++ b/package.json @@ -23,11 +23,11 @@ "through": "~2.3.8" }, "devDependencies": { - "concat-stream": "~1.4.1", - "falafel": "~1.0.1", - "js-yaml": "^3.3.1", + "concat-stream": "~1.5.1", + "falafel": "~1.2.0", + "js-yaml": "~3.5.3", "tap": "~0.7.1", - "tap-parser": "^1.1.6" + "tap-parser": "~1.2.2" }, "scripts": { "test": "tap test/*.js" From 40be68520fedee580462bfaa7e91651154a65bea Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sun, 14 Feb 2016 09:27:58 -0800 Subject: [PATCH 8/8] =?UTF-8?q?[Tests]=20building=20C=20extensions=20on=20?= =?UTF-8?q?iojs=203=20and=20greater=20doesn=E2=80=99t=20work=20on=20a=20st?= =?UTF-8?q?ock=20sudoless=20travis-ci=20VM.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reverts #244. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c415b239..fc1270d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: node_js -sudo: false +sudo: true node_js: - "0.10" - "0.12"