-
-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip! fix tests to work without tap --coverage
Annoyingly they now don't work *with* tap --coverage, but on the other hand the fixes seem legit: Spawning tests need to run via bin/nyc otherwise they end up relying on tap's coverage reporting. The 'runs reports for all JSON in output directory' test should spawn a subprocess that itself spawns more processes, else only a single file would be generated. The 'handles corrupt JSON files' test doesn't need to spawn a subprocess, it just has to inject the corrupt JSON file into the output directory.
- Loading branch information
1 parent
2221d23
commit 0e20f6c
Showing
2 changed files
with
40 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env node | ||
|
||
var spawn = require('child_process').spawn | ||
spawn(process.execPath, ['sigint.js'], { cwd: __dirname }) | ||
spawn(process.execPath, ['sigterm.js'], { cwd: __dirname }) |
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