how do i make bazel test stop on any test failure?

2,903 views
Skip to first unread message

johnes...@gmail.com

unread,
Feb 6, 2020, 3:38:41 AM2/6/20
to bazel-discuss
Hi I am using `bazel test //target/...` to run all tests under `//target/`,

the current behavior is, if there is already a test failure, the bazel test will continue running until all tests finished running, and all the failed tests are reported.

what I want the behavior to be is for any test failure, stop `bazel test` entirely so that we can save some time from the entire cycle.

Is this supported? the only option seems relevant is `--[no]keep_going [-k] default: "false"` from https://docs.bazel.build/versions/2.0.0/command-line-reference.html, but it's confusing that by default it is already false, but why is bazel test continuing running?

László Csomor

unread,
Feb 6, 2020, 3:46:59 AM2/6/20
to johnes...@gmail.com, bazel-discuss
See --notest_keep_going
(https://docs.bazel.build/versions/2.0.0/command-line-reference.html#flag--test_keep_going)


--
László Csomor | Software Engineer | laszlo...@google.com

Google Germany GmbH | Erika-Mann-Str. 33 | 80636 München | Germany
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Paul Manicle, Halimah DeLaine Prado
> --
> You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/b2b00549-8439-4553-b63b-ce39555bea3e%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages