zarro 1.109.2 → 1.109.5

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.
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ (function () {
3
+ const env = requireModule("env"), actual = require("ansi-colors"), shim = {}, functions = Object.keys(actual)
4
+ .filter(k => typeof actual[k] === "function");
5
+ for (const fn of functions) {
6
+ shim[fn] = (s) => {
7
+ if (env.resolveFlag("NO_COLOR")) {
8
+ return s;
9
+ }
10
+ return actual[fn](s);
11
+ };
12
+ }
13
+ module.exports = shim;
14
+ })();
@@ -0,0 +1,17 @@
1
+ (function () {
2
+ const
3
+ env = requireModule<Env>("env"),
4
+ actual = require("ansi-colors"),
5
+ shim = {} as any,
6
+ functions = Object.keys(actual)
7
+ .filter(k => typeof actual[k] === "function");
8
+ for (const fn of functions) {
9
+ shim[fn] = (s: string) => {
10
+ if (env.resolveFlag("NO_COLOR")) {
11
+ return s;
12
+ }
13
+ return actual[fn](s);
14
+ };
15
+ }
16
+ module.exports = shim;
17
+ })();
@@ -16,6 +16,7 @@ const
16
16
  debug = require("debug")("test-dotnet"),
17
17
  filter = require("gulp-filter"),
18
18
  fs = require("fs"),
19
+ chalk = requireModule("chalk"),
19
20
  promisifyStream = requireModule("promisify"),
20
21
  nunit = require("./modules/gulp-nunit-runner"),
21
22
  testUtilFinder = requireModule("testutil-finder"),
@@ -233,14 +234,17 @@ function logOverallResults(testResults) {
233
234
  now = Date.now(),
234
235
  runTimeMs = now - testResults.started,
235
236
  runTime = nunitLikeTime(runTimeMs);
236
- console.log(`
237
+ console.log(chalk.yellowBright(`
237
238
  Test Run Summary
238
239
  Overall result: ${ overallResultFor(testResults) }
239
240
  Test Count: ${ total }, Passed: ${ testResults.passed }, Failed: ${ testResults.failed }, Skipped: ${ testResults.skipped }
240
241
  Start time: ${ dateString(testResults.started) }
241
242
  End time: ${ dateString(now) }
242
243
  Duration: ${ runTime }
243
- `);
244
+ `));
245
+ if (testResults.failureSummary.length) {
246
+ console.log(`\n${chalk.redBright("Failures:")}`);
247
+ }
244
248
  let
245
249
  blankLines = 0,
246
250
  failIndex = 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zarro",
3
- "version": "1.109.2",
3
+ "version": "1.109.5",
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"