Giter Club home page Giter Club logo

Comments (3)

acmcarther avatar acmcarther commented on July 3, 2024

tags is an accepted field for rust_test according to my local testing.

I tried the following values:

  1. exclusive: Unclear if this one worked, no observable effect
  2. 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).
  3. 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.

acmcarther avatar acmcarther commented on July 3, 2024

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.

petroseskinder avatar petroseskinder commented on July 3, 2024

Thank you for verifying and the prompt reply.

from rules_rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.