commit | 25c65258eed6c40ffdd261a23010efd126f2384c | [log] [tgz] |
---|---|---|
author | Googler <noreply@google.com> | Fri Jun 12 07:02:33 2020 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Jun 12 07:03:50 2020 -0700 |
tree | 17208e2086c67ab53f1ede339a500a86a897d859 | |
parent | ff4c25189b6956e39d1a3ef2be3241ff21274158 [diff] |
Default TestSize is null case to UNKNOWN test size in BuildEvent If the target is a test but does not have a valid test size that matches the TestSize enums or does not meet certain character traits (such as all lower case), then a null value is returned. Switch statement over a null object will throw a NPE. Add null check before switch statement, so no NPE is thrown. Also add additional logging of the test target prior to getting test size. RELNOTES: None. PiperOrigin-RevId: 316098020
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md