ruseel
ruseel

Reputation: 1734

bazel `java_test` rule - test.xml only exits on failed shard?

Trying to run bazel test ... with remote execution and java_test rule.

My test sometimes succeeded, sometimes failed. This is another story.

But I want to get test.xml for all cases to check elapsed time for each test. test.xml exists on bazel-testlogs only when some shard failed.

I tried

bazel test --test_output=all --test_summary=detailed ...

but didn't worked.

How can I get all test.xml even if it succeed?

Upvotes: 0

Views: 119

Answers (1)

ruseel
ruseel

Reputation: 1734

bazel test --remote_download_toplevel ... worked for me.

remote_execution_test.sh from bazel repo gave me clue!

Upvotes: 1

Related Questions