Skip to content

Commit c4aa958

Browse files
author
John Haley
committed
Fixed tests running on windows
1 parent 5b02972 commit c4aa958

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
/build/
66
/test/coverage/
77
/test/repos/
8+
/test/test/repos/
89
/src/
910
/include/
1011
/lib/enums.js

test/index.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
var args = "cover _mocha -- runner tests --report=lcov".split(" ");
1+
var args = [
2+
"cover",
3+
process.platform != "win32" ? "_mocha" : "../node_modules/mocha/bin/_mocha",
4+
"--",
5+
"runner",
6+
"tests",
7+
"--report=lcov",
8+
"--expose-gc"
9+
];
210

311
require("child_process").fork("../node_modules/istanbul/lib/cli.js", args, {
4-
cwd: __dirname,
5-
execArgv: [
6-
process.platform !== "win32" ? "--expose-gc" : ""
7-
]
12+
cwd: __dirname
813
});

0 commit comments

Comments
 (0)