Skip to content

Commit 66b7d9a

Browse files
committed
Make tests verbose by default
1 parent fd29b62 commit 66b7d9a

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
},
3535
"devDependencies": {
3636
"underscore": "1.6.0",
37-
"urun": "0.0.7",
37+
"urun": "0.0.8",
3838
"utest": "0.0.8"
3939
},
4040
"engines": {

test/integration/connection/test-exception-safety.js

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ var assert = require('assert');
1111

1212
var errors = [];
1313
process.on('uncaughtException', function(err) {
14-
console.log(err.stack);
1514
errors.push(err);
1615
});
1716

test/run.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1+
var urun = require('urun');
2+
13
var options = {};
24

35
if (process.env.FILTER) {
46
options.include = new RegExp(process.env.FILTER + '.*\\.js$');
57
}
68

79
options.reporter = 'BashTapReporter';
10+
options.verbose = process.env.VERBOSE
11+
? Boolean(JSON.parse(process.env.VERBOSE))
12+
: true;
813

9-
require('urun')(__dirname, options);
14+
urun(__dirname, options);

test/unit/connection/test-unix-domain-socket.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**
2-
* This test is skipped, if the environment variable "windir" is set.
3-
* It assumes that it runs on a windows system then.
2+
* This test is skipped on Windows.
43
*/
5-
if (process.env.windir) {
6-
return console.log('Skipping "test-unix-domain-socket.js" - Environment'
7-
+ ' variable "windir" is set. Skipping this, because we seem to be on'
8-
+ ' a windows system');
4+
5+
if (process.platform === 'win32') {
6+
console.log('skipping - windows does not support unix sockets');
7+
return;
98
}
9+
1010
var common = require('../../common');
1111
var connection = common.createConnection({socketPath: common.fakeServerSocket});
1212
var assert = require('assert');

0 commit comments

Comments
 (0)