Commit 2aa0f21 1 parent 7bd7f22 commit 2aa0f21 Copy full SHA for 2aa0f21
File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,10 @@ Environment Variables:
215
215
216
216
_TAP_COVERAGE_ Reserved for internal use.
217
217
218
+ TAP_DEBUG Set to '1' to turn on debug mode.
219
+
220
+ NODE_DEBUG Include 'tap' to turn on debug mode.
221
+
218
222
Config Files:
219
223
220
224
You can create a yaml file with any of the options above. By default,
Original file line number Diff line number Diff line change @@ -111,7 +111,12 @@ TAP.prototype.teardown = TAP.prototype.tearDown = function (fn) {
111
111
return Test . prototype . teardown . apply ( this , arguments )
112
112
}
113
113
114
- var tap = new TAP ( { name : 'TAP' } )
114
+ var opt = { name : 'TAP' }
115
+ if ( process . env . TAP_DEBUG === '1' ||
116
+ / \b t a p \b / . test ( process . env . NODE_DEBUG || '' ) )
117
+ opt . debug = true
118
+
119
+ var tap = new TAP ( opt )
115
120
module . exports = tap
116
121
tap . mocha = require ( './mocha.js' )
117
122
tap . mochaGlobals = tap . mocha . global
You can’t perform that action at this time.
0 commit comments