zarro 1.109.1 → 1.109.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 +21 -3
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ const
|
|
|
3
3
|
QUACKERS_SUMMARY_START = `::SS::`,
|
|
4
4
|
QUACKERS_SUMMARY_COMPLETE = `::SC::`,
|
|
5
5
|
QUACKERS_FAILURES_MARKER = `::SF::`,
|
|
6
|
+
QUACKERS_FAILURE_INDEX_PLACEHOLDER = "::[#]::",
|
|
6
7
|
quackersLogPrefixLength = QUACKERS_LOG_PREFIX.length,
|
|
7
8
|
quackersFullSummaryStartMarker = `${ QUACKERS_LOG_PREFIX }${ QUACKERS_SUMMARY_START }`,
|
|
8
9
|
quackersFullSummaryCompleteMarker = `${ QUACKERS_LOG_PREFIX }${ QUACKERS_SUMMARY_COMPLETE }`,
|
|
@@ -194,7 +195,7 @@ async function testAsDotnetCore(configuration, testProjects) {
|
|
|
194
195
|
for (const projectPath of testProjectPaths) {
|
|
195
196
|
console.log(` ${projectPath}`);
|
|
196
197
|
}
|
|
197
|
-
|
|
198
|
+
|
|
198
199
|
let p, current = 0;
|
|
199
200
|
while (p = testProjectPaths.shift()) {
|
|
200
201
|
const
|
|
@@ -240,8 +241,24 @@ Test Run Summary
|
|
|
240
241
|
End time: ${ dateString(now) }
|
|
241
242
|
Duration: ${ runTime }
|
|
242
243
|
`);
|
|
243
|
-
|
|
244
|
-
|
|
244
|
+
let
|
|
245
|
+
blankLines = 0,
|
|
246
|
+
failIndex = 1;
|
|
247
|
+
for (let line of testResults.failureSummary) {
|
|
248
|
+
line = line.trim();
|
|
249
|
+
if (!line) {
|
|
250
|
+
blankLines++;
|
|
251
|
+
} else {
|
|
252
|
+
blankLines = 0;
|
|
253
|
+
}
|
|
254
|
+
if (blankLines > 1) {
|
|
255
|
+
continue;
|
|
256
|
+
}
|
|
257
|
+
const substituted = line.replace(QUACKERS_FAILURE_INDEX_PLACEHOLDER, `[${failIndex}]`);
|
|
258
|
+
if (substituted !== line) {
|
|
259
|
+
failIndex++;
|
|
260
|
+
}
|
|
261
|
+
console.log(substituted);
|
|
245
262
|
}
|
|
246
263
|
}
|
|
247
264
|
|
|
@@ -419,6 +436,7 @@ function generateQuackersLoggerConfig(target) {
|
|
|
419
436
|
failureStartMarker: QUACKERS_FAILURES_MARKER,
|
|
420
437
|
verboseSummary: "true",
|
|
421
438
|
outputFailuresInline: "true",
|
|
439
|
+
failureIndexPlaceholder: QUACKERS_FAILURE_INDEX_PLACEHOLDER
|
|
422
440
|
};
|
|
423
441
|
const prefix = resolveTestPrefixFor(target);
|
|
424
442
|
if (prefix) {
|