bazel - writable archivable path for test runtime

前端 未结 1 939
心在旅途
心在旅途 2020-12-20 23:05

I\'m running E2E test using some bazel test target (the scala flavour of java_test).

In Maven I used to dump logs to target/logs folder th

1条回答
  •  再見小時候
    2020-12-20 23:58

    So digging through bazel docs I found this: https://docs.bazel.build/versions/master/test-encyclopedia.html#initial-conditions

    Seems like I can read env variable "TEST_UNDECLARED_OUTPUTS_DIR" and it will give me a writable path. Anything I write there would be zipped and saved under ./bazel-out/darwin-fastbuild/testlogs///test.outputs/outputs.zip

    Pretty cool!

    0 讨论(0)
提交回复
热议问题