Skip to content

Commit

Permalink
Include concurrency info in output (digital-asset#10970)
Browse files Browse the repository at this point in the history
changelog_begin
changelog_end
  • Loading branch information
rautenrieth-da committed Sep 22, 2021
1 parent a0b6800 commit ced4a27
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,15 @@ object LedgerApiTestTool {
new ColorizedPrintStreamReporter(
System.out,
config.verbose,
).report(summaries, excludedTestSummaries, identifierSuffix)
).report(
summaries,
excludedTestSummaries,
Seq(
"identifierSuffix" -> identifierSuffix,
"concurrentTestRuns" -> config.concurrentTestRuns.toString,
"timeoutScaleFactor" -> config.timeoutScaleFactor.toString,
),
)
sys.exit(exitCode(summaries, config.mustFail))
case Failure(exception: Errors.FrameworkException) =>
logger.error(exception.getMessage)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ trait Reporter[A] {
def report(
results: Vector[LedgerTestSummary],
skippedTests: Vector[LedgerTestSummary],
identifierSuffix: String,
runInfo: Seq[(String, String)],
): A
}

Expand Down Expand Up @@ -112,7 +112,7 @@ object Reporter {
override def report(
results: Vector[LedgerTestSummary],
excludedTests: Vector[LedgerTestSummary],
identifierSuffix: String,
runInfo: Seq[(String, String)],
): Unit = {
s.println()
s.println(blue("#" * 80))
Expand All @@ -124,7 +124,7 @@ object Reporter {
s.println()
s.println(yellow("### RUN INFORMATION"))
s.println()
s.println(cyan(s"identifierSuffix = $identifierSuffix"))
runInfo.foreach { case (label, value) => s.println(cyan(s"$label = $value")) }

val (successes, failures) = results.partition(_.result.isRight)

Expand Down

0 comments on commit ced4a27

Please sign in to comment.