testarmada-magellan
Advanced tools
Comparing version 11.0.13 to 11.0.14
{ | ||
"name": "testarmada-magellan", | ||
"version": "11.0.13", | ||
"version": "11.0.14", | ||
"description": "Massively parallel automated testing", | ||
@@ -5,0 +5,0 @@ "main": "src/main", |
@@ -36,3 +36,4 @@ "use strict"; | ||
"Test Suite", | ||
"✖" | ||
"✖", | ||
"✔" | ||
]; | ||
@@ -62,2 +63,20 @@ | ||
if (text.length > 0 && self.isTextWhiteListed(text)) { | ||
if (!process.env.DEBUG && text.includes("✔")) { | ||
// for successful chunks we really only want to keep specific lines | ||
const lines = text.split("\n"); | ||
const buff = []; | ||
const startsWithTerms = ["Running:", " ✔", "OK."]; | ||
const maxLineLength = 512; | ||
const processLine = (line) => { | ||
for (const term of startsWithTerms) { | ||
// line could have an ERROR or WARN tag that is whitelisted we want to keep | ||
if (self.isTextWhiteListed(line) || line.startsWith(term)) { | ||
// limit the length of each line, goal here is to "limit" verbosity | ||
buff.push(line.substring(0, maxLineLength)); | ||
} | ||
} | ||
}; | ||
lines.forEach(line => processLine(line)); | ||
text = buff.join("\n"); | ||
} | ||
text = text | ||
@@ -79,2 +98,3 @@ .split("\n") | ||
this.emitter.stderr = handler.stderr; | ||
this.emitter.infoSlicer = infoSlicer; | ||
@@ -81,0 +101,0 @@ // pipe the stdout stream into the slicer and then into the filter |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
212940
5087
16