Skip to content

Commit

Permalink
Clarify test_suite behaviour in the Platforms docs
Browse files Browse the repository at this point in the history
The current `test_suite` behaviour in regards to incompatible target
skipping is subtle and not necessarily obvious. This patch aims to
clear up some of the confusion.
  • Loading branch information
philsc committed Jan 22, 2021
1 parent 7fb0c16 commit 3afff63
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions site/docs/platforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@ $ bazel build --platforms=//:myplatform //...`
$ bazel build --platforms=//:myplatform //:all`
```

Incompatible tests in a [`test_suite`](be/general.html#test_suite) are
similarly skipped if the `test_suite` is specified on the command line with
[`--expand_test_suites`](command-line-reference.html#flag--expand_test_suites).
In other words, `test_suite` targets on the command line behave like `:all` and
`...`. Using `--noexpand_test_suites` prevents expansion and causes
`test_suite` targets with incompatible tests to also be incompatible.

Explicitly specifying an incompatible target on the command line results in an
error message and a failed build.

Expand Down

0 comments on commit 3afff63

Please sign in to comment.