zarro 1.112.0 → 1.113.0
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 +13 -1
- package/package.json +1 -1
|
@@ -26,7 +26,9 @@ const
|
|
|
26
26
|
gatherPaths = requireModule("gather-paths"),
|
|
27
27
|
{ test } = requireModule("dotnet-cli"),
|
|
28
28
|
{ resolveTestPrefixFor } = requireModule("test-utils"),
|
|
29
|
+
buildReportFolder = path.dirname(env.resolve("BUILD_REPORT_XML")),
|
|
29
30
|
netFrameworkTestAssemblyFilter = requireModule("net-framework-test-assembly-filter");
|
|
31
|
+
const { baseName, chopExtension } = require("./modules/path-utils");
|
|
30
32
|
|
|
31
33
|
gulp.task(
|
|
32
34
|
"test-dotnet",
|
|
@@ -59,7 +61,6 @@ const myTasks = [ "test-dotnet", "quick-test-dotnet" ],
|
|
|
59
61
|
env.associate(myVars, myTasks);
|
|
60
62
|
|
|
61
63
|
async function runTests() {
|
|
62
|
-
const buildReportFolder = path.dirname(env.resolve("BUILD_REPORT_XML"));
|
|
63
64
|
if (!fs.existsSync(buildReportFolder)) {
|
|
64
65
|
fs.mkdirSync(buildReportFolder);
|
|
65
66
|
}
|
|
@@ -325,6 +326,7 @@ async function testOneProject(
|
|
|
325
326
|
loggers = useQuackers
|
|
326
327
|
? generateQuackersLoggerConfig(target)
|
|
327
328
|
: generateBuiltinConsoleLoggerConfig();
|
|
329
|
+
addTrxLoggerTo(loggers, target);
|
|
328
330
|
testResults.quackersEnabled = testResults.quackersEnabled || useQuackers;
|
|
329
331
|
return await test({
|
|
330
332
|
target,
|
|
@@ -337,6 +339,16 @@ async function testOneProject(
|
|
|
337
339
|
});
|
|
338
340
|
}
|
|
339
341
|
|
|
342
|
+
function addTrxLoggerTo(loggers, target) {
|
|
343
|
+
const
|
|
344
|
+
proj = baseName(target),
|
|
345
|
+
projName = chopExtension(proj),
|
|
346
|
+
logFileName = path.resolve(path.join(buildReportFolder, `${ projName }.trx`));
|
|
347
|
+
loggers.trx = {
|
|
348
|
+
logFileName
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
|
|
340
352
|
function quackersStdOutHandler(state, s) {
|
|
341
353
|
s = s || "";
|
|
342
354
|
if (s.startsWith(quackersFullSummaryStartMarker)) {
|