Comments (3)
tags
is an accepted field for rust_test according to my local testing.
I tried the following values:
- exclusive: Unclear if this one worked, no observable effect
- manual: This is supposed to cause the test not to be included in aggregate builds. This did not work for me either with
@examples//...
or with@examples//hello_lib:all
(the test was run). - external: Ostensibly, this forces the test not to cache. This worked in local testing for me
I wonder if we need to specially implement manual
...
from rules_rust.
Apologies -- Addendum:
Manual does also work for me (note the omission of @examples//hello_lib:hello_lib_test).
$ bazel test @examples//...
INFO: Analysed 21 targets (0 packages loaded).
INFO: Found 13 targets and 8 test targets...
INFO: Elapsed time: 0.171s, Critical Path: 0.01s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
@examples//fibonacci:fibonacci_doc_test (cached) PASSED in 0.6s
@examples//fibonacci:fibonacci_test (cached) PASSED in 0.1s
@examples//hello_lib:greeting_test (cached) PASSED in 0.1s
@examples//hello_lib:hello_lib_doc_test (cached) PASSED in 0.5s
@examples//hello_runfiles:hello_runfiles_test (cached) PASSED in 0.1s
@examples//hello_world:hello_world_doc_test (cached) PASSED in 0.7s
@examples//matrix:matrix_test (cached) PASSED in 0.2s
@examples//matrix:native_matrix_test (cached) PASSED in 0.1s
Executed 0 out of 8 tests: 8 tests pass.
There were tests whose specified size is too big. Use the --test_verbose_timeout_warnings command line option to see wINFO: Build completed successfully, 1 total action
$ bazel test @examples//hello_lib:all
INFO: Analysed 7 targets (0 packages loaded).
INFO: Found 5 targets and 2 test targets...
INFO: Elapsed time: 0.124s, Critical Path: 0.00s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
@examples//hello_lib:greeting_test (cached) PASSED in 0.1s
@examples//hello_lib:hello_lib_doc_test (cached) PASSED in 0.5s
Executed 0 out of 2 tests: 2 tests pass.
There were tests whose specified size is too big. Use the --test_verbose_timeout_warnings command line option to see wINFO: Build completed successfully, 1 total action
from rules_rust.
Thank you for verifying and the prompt reply.
from rules_rust.
Related Issues (20)
- Can't build [email protected] under MODULE.bazel HOT 2
- `default_features = False` not respected in bzlmod HOT 2
- Error when compiling Rust on Aarch64 MacOS HOT 1
- gen_rust_project doesn't work with bzlmod HOT 1
- crates_vendor doesn't support build metadata in version strings
- How to deal with crates that depend on cmake on macos HOT 3
- Support incompatible_enable_proto_toolchain_resolution HOT 3
- Unable to generate initial Cargo.Bazel.lock HOT 1
- Code completion support in Rust Bazel projects HOT 2
- Re-enable `//test/native_deps/...` tests on Windows HOT 1
- bzlmod sneaks into a non-bzlmod build: very frequent recomputation of main repo mapping HOT 8
- Runfiles should return `Result` instead of panicing HOT 8
- Add rustc_flags to rust_doc_test HOT 1
- crates_vendor produces a defs.bzl file that fails when included as part of a bzlmod submodule
- crate_universe: "Error: Failed to query cargo version" HOT 1
- Incomplete rust-project.json for targets tagged "manual"
- Build script env is overridden by use_default_shell_env in Bazel 6 HOT 4
- Environment variables Cargo sets for crates HOT 1
- Support for rules_proto 6.x
- `CARGO_MANIFEST_DIR was not set` error when building `rust_prost_library` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rules_rust.