-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure --debug becomes --inspect; closes #3697
- add some handiness to the integration test helpers - update docstrings in integration test helpers
- Loading branch information
Showing
5 changed files
with
95 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// this generic fixture does nothing special and will be used if no fixture is supplied | ||
|
||
'use strict'; | ||
|
||
describe('a suite', function() { | ||
it('should succeed', function(done) { | ||
done(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
'use strict'; | ||
|
||
var helpers = require('../helpers'); | ||
var invokeMocha = helpers.invokeMocha; | ||
var DEFAULT_FIXTURE = helpers.DEFAULT_FIXTURE; | ||
|
||
describe('--debug', function() { | ||
describe('Node.js v8+', function() { | ||
before(function() { | ||
if (process.version.substring(0, 2) === 'v6') { | ||
this.skip(); | ||
} | ||
}); | ||
|
||
it('should invoke --inspect', function(done) { | ||
invokeMocha( | ||
['--debug', '--file', DEFAULT_FIXTURE], | ||
function(err, res) { | ||
if (err) { | ||
return done(err); | ||
} | ||
expect(res, 'to have passed').and( | ||
'to contain output', | ||
/Debugger listening/i | ||
); | ||
done(); | ||
}, | ||
{stdio: 'pipe'} | ||
); | ||
}); | ||
}); | ||
}); |