Skip to content

Commit 5d60097

Browse files
committed
Merge branch 'buffered-tests'
2 parents 0c8b426 + 60efe95 commit 5d60097

File tree

286 files changed

+4432
-540
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

286 files changed

+4432
-540
lines changed

bin/usage.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,17 @@ Environment Variables:
173173
running child tests so that their output
174174
is parseable by the test harness.
175175

176+
TAP_DIAG Set to '1' to show diagnostics by
177+
default for passing tests. Set to '0'
178+
to NOT show diagnostics by default for
179+
failing tests. If not one of these two
180+
values, then diagnostics are printed by
181+
default for failing tests, and not for
182+
passing tests.
183+
184+
TAP_BUFFER Set to '1' to run subtests in buffered
185+
mode by default.
186+
176187
_TAP_COVERAGE_ Reserved for internal use.
177188

178189
Config Files:

lib/root.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ process.on('exit', function (code) {
3838

3939
tap.pipe = function () {
4040
didPipe = true
41+
tap._runChild = Test.prototype._runChild
4142
tap.push = Test.prototype.push
4243
tap.pipe = Test.prototype.pipe
4344
process.on('uncaughtException', onUncaught)
@@ -52,6 +53,11 @@ function pipe () {
5253
tap.pipe(process.stdout)
5354
}
5455

56+
tap._runChild = function _runChild () {
57+
pipe()
58+
return tap._runChild.apply(tap, arguments)
59+
}
60+
5561
tap.push = function push () {
5662
pipe()
5763
return tap.push.apply(tap, arguments)

0 commit comments

Comments
 (0)