zarro 1.110.1 → 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.
@@ -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 project${testProjectPaths.length === 1 ? "" : "s"}:`);
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
- console.log(`\n${chalk.redBright("Failures:")}`);
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}] ${state.testNamePrefix}`);
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) {
@@ -315,7 +317,7 @@ async function testOneProject(
315
317
  ? quackersStdOutHandler.bind(null, quackersState)
316
318
  : undefined,
317
319
  loggers = useQuackers
318
- ? generateQuackersLoggerConfig(target, quackersState)
320
+ ? generateQuackersLoggerConfig(target)
319
321
  : generateBuiltinConsoleLoggerConfig();
320
322
  return await test({
321
323
  target,
@@ -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":
@@ -432,7 +434,7 @@ function generateBuiltinConsoleLoggerConfig() {
432
434
  }
433
435
  }
434
436
 
435
- function generateQuackersLoggerConfig(target, state) {
437
+ function generateQuackersLoggerConfig(target) {
436
438
  const quackers = {
437
439
  logprefix: QUACKERS_LOG_PREFIX,
438
440
  summaryStartMarker: QUACKERS_SUMMARY_START,
@@ -445,7 +447,6 @@ function generateQuackersLoggerConfig(target, state) {
445
447
  const prefix = resolveTestPrefixFor(target);
446
448
  if (prefix) {
447
449
  quackers.testNamePrefix = prefix;
448
- state.testNamePrefix = prefix;
449
450
  }
450
451
  // quackers also accepts env vars, but the ones we're setting here
451
452
  // are kinda required for zarro to operate as expected; fortunately,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zarro",
3
- "version": "1.110.1",
3
+ "version": "1.110.2",
4
4
  "description": "Some glue to make gulp easier, perhaps even zero- or close-to-zero-conf",
5
5
  "bin": {
6
6
  "zarro": "./index.js"