Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print version of the ledger api test tool as part of the report #10119

Merged
merged 2 commits into from
Jun 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ledger/ledger-api-test-tool/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ da_scala_binary(
"//ledger/test-common:test-common-%s" % lf_version,
"//ledger/test-common:model-tests-%s.scala" % lf_version,
"//ledger/test-common:dar-files-%s-lib" % lf_version,
"//libs-scala/build-info",
"//libs-scala/grpc-utils",
"//libs-scala/resources",
"//libs-scala/resources-akka",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ package com.daml.ledger.api.testtool.infrastructure

import java.io.{PrintStream, PrintWriter, StringWriter}

import com.daml.buildinfo.BuildInfo

import scala.util.Try

trait Reporter[A] {
Expand Down Expand Up @@ -105,7 +107,7 @@ object Reporter {
s.println()
s.println(blue("#" * 80))
s.println(blue("#"))
s.println(blue("# TEST REPORT"))
s.println(blue(s"# TEST REPORT, version: ${BuildInfo.Version}"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have added a line in the ### RUN INFORMATION section (where you could also print additional details like the participant configuration), but I have no strong opinion on this.

s.println(blue("#"))
s.println(blue("#" * 80))

Expand Down