zarro 1.109.5 → 1.110.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gulp-tasks/test-dotnet.js +10 -8
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ const
|
|
|
31
31
|
gulp.task(
|
|
32
32
|
"test-dotnet",
|
|
33
33
|
`Runs all tests in your solution via NUnit *`,
|
|
34
|
-
["build"],
|
|
34
|
+
[ "build" ],
|
|
35
35
|
runTests
|
|
36
36
|
);
|
|
37
37
|
|
|
@@ -41,7 +41,7 @@ gulp.task(
|
|
|
41
41
|
runTests
|
|
42
42
|
);
|
|
43
43
|
|
|
44
|
-
const myTasks = ["test-dotnet", "quick-test-dotnet"],
|
|
44
|
+
const myTasks = [ "test-dotnet", "quick-test-dotnet" ],
|
|
45
45
|
myVars = [
|
|
46
46
|
"BUILD_CONFIGURATION",
|
|
47
47
|
"DOTNET_CORE",
|
|
@@ -192,9 +192,9 @@ async function testAsDotnetCore(configuration, testProjects) {
|
|
|
192
192
|
: 1,
|
|
193
193
|
chains = seed(concurrency).map(() => Promise.resolve());
|
|
194
194
|
|
|
195
|
-
console.log(`Will run tests for
|
|
195
|
+
console.log(`Will run tests for project${ testProjectPaths.length === 1 ? "" : "s" }:`);
|
|
196
196
|
for (const projectPath of testProjectPaths) {
|
|
197
|
-
console.log(` ${projectPath}`);
|
|
197
|
+
console.log(` ${ projectPath }`);
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
let p, current = 0;
|
|
@@ -242,9 +242,10 @@ Test Run Summary
|
|
|
242
242
|
End time: ${ dateString(now) }
|
|
243
243
|
Duration: ${ runTime }
|
|
244
244
|
`));
|
|
245
|
-
if (testResults.failureSummary.length) {
|
|
246
|
-
|
|
245
|
+
if (testResults.failureSummary.length == 0) {
|
|
246
|
+
return;
|
|
247
247
|
}
|
|
248
|
+
console.log(`\n${ chalk.redBright("Failures:") }`);
|
|
248
249
|
let
|
|
249
250
|
blankLines = 0,
|
|
250
251
|
failIndex = 1;
|
|
@@ -258,12 +259,13 @@ Test Run Summary
|
|
|
258
259
|
if (blankLines > 1) {
|
|
259
260
|
continue;
|
|
260
261
|
}
|
|
261
|
-
const substituted = line.replace(QUACKERS_FAILURE_INDEX_PLACEHOLDER, `[${failIndex}]`);
|
|
262
|
+
const substituted = line.replace(QUACKERS_FAILURE_INDEX_PLACEHOLDER, `[${ failIndex }]`);
|
|
262
263
|
if (substituted !== line) {
|
|
263
264
|
failIndex++;
|
|
264
265
|
}
|
|
265
266
|
console.log(substituted);
|
|
266
267
|
}
|
|
268
|
+
console.log("\n");
|
|
267
269
|
}
|
|
268
270
|
|
|
269
271
|
function dateString(ms) {
|
|
@@ -385,7 +387,7 @@ function quackersStdOutHandler(state, s) {
|
|
|
385
387
|
function incrementTestResultCount(testResults, line) {
|
|
386
388
|
const
|
|
387
389
|
parts = line.split(":").map(p => p.trim().toLowerCase()),
|
|
388
|
-
numericPart = line.match(/\d+/) || ["0"],
|
|
390
|
+
numericPart = line.match(/\d+/) || [ "0" ],
|
|
389
391
|
count = parseInt(numericPart[0]);
|
|
390
392
|
switch (parts[0]) {
|
|
391
393
|
case "passed":
|