zarro 1.151.0 → 1.151.4

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.
@@ -182,7 +182,10 @@
182
182
  : str;
183
183
  }
184
184
  async function test(opts) {
185
- return runOnAllConfigurations(label("Testing"), opts, configuration => {
185
+ const labelText = !!opts.label
186
+ ? `${label("Testing")}`
187
+ : `${opts.label} ${label("Testing")}`;
188
+ return runOnAllConfigurations(labelText, opts, configuration => {
186
189
  const args = [
187
190
  "test",
188
191
  q(opts.target)
@@ -171,11 +171,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
171
171
  }
172
172
  const rebuild = env.resolveFlag(env.DOTNET_TEST_REBUILD);
173
173
  const runningInParallel = concurrency > 1;
174
+ const suppressOutput = true;
174
175
  const tasks = testProjectPaths.map((path, idx) => {
175
176
  return async () => {
176
177
  debug(`${idx} start test run ${path}`);
177
178
  try {
178
- const result = await testOneDotNetCoreProject(path, configuration, verbosity, testResults, runningInParallel, rebuild);
179
+ const result = await testOneDotNetCoreProject(path, configuration, verbosity, testResults, runningInParallel, rebuild, suppressOutput, `(${idx + 1} / ${testProjectPaths.length})`);
179
180
  testProcessResults.push(result);
180
181
  }
181
182
  catch (e) {
@@ -304,7 +305,7 @@ Test Run Summary
304
305
  const ms = totalMs % 1000, seconds = Math.floor(totalMs / 1000);
305
306
  return `${seconds}.${ms} seconds`;
306
307
  }
307
- async function testOneDotNetCoreProject(target, configuration, verbosity, testResults, runningInParallel, forceBuild, suppressOutput) {
308
+ async function testOneDotNetCoreProject(target, configuration, verbosity, testResults, runningInParallel, forceBuild, suppressOutput, label) {
308
309
  const quackersState = {
309
310
  inSummary: false,
310
311
  inFailureSummary: false,
@@ -342,7 +343,8 @@ Test Run Summary
342
343
  stdout,
343
344
  suppressOutput,
344
345
  suppressErrors: true,
345
- env: testEnvironment
346
+ env: testEnvironment,
347
+ label
346
348
  });
347
349
  return result;
348
350
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zarro",
3
- "version": "1.151.0",
3
+ "version": "1.151.4",
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"
package/types.d.ts CHANGED
@@ -1508,6 +1508,7 @@ declare global {
1508
1508
  env?: Dictionary<string>;
1509
1509
  filter?: string;
1510
1510
  diagnostics?: string;
1511
+ label?: string;
1511
1512
  }
1512
1513
 
1513
1514
  interface NugetSource {