Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with 'bazel test ...' command #8

Open
backupaccount0 opened this issue Feb 8, 2023 · 3 comments
Open

Error with 'bazel test ...' command #8

backupaccount0 opened this issue Feb 8, 2023 · 3 comments

Comments

@backupaccount0
Copy link

Hi, thanks for your excellent work and open source it!

I am new to bazel and have some trouble running the command: bazel test ...

Is is possible for you to upload the bazel BUILD file or anyelse do I need to run the bazel related command?

@AlexandrParkhomenko
Copy link

bazel test ...
WARNING: Invoking Bazel in batch mode since it is not invoked from within a workspace (below a directory having a WORKSPACE file).
ERROR: The 'test' command is only supported from within a workspace (below a directory having a WORKSPACE file).
See documentation at https://docs.bazel.build/versions/main/build-ref.html#workspace

@llipika
Copy link

llipika commented Oct 27, 2023

bazel test ... WARNING: Invoking Bazel in batch mode since it is not invoked from within a workspace (below a directory having a WORKSPACE file). ERROR: The 'test' command is only supported from within a workspace (below a directory having a WORKSPACE file). See documentation at https://docs.bazel.build/versions/main/build-ref.html#workspace

I have the same problem remaining unsolved...

@Jensonzzs
Copy link

bazel test ... WARNING: Invoking Bazel in batch mode since it is not invoked from within a workspace (below a directory having a WORKSPACE file). ERROR: The 'test' command is only supported from within a workspace (below a directory having a WORKSPACE file). See documentation at https://docs.bazel.build/versions/main/build-ref.html#workspace

I use “type nul > WORKSPACE” to solve this problem.But another problem appeared.
ERROR: no targets found beneath ''
INFO: Elapsed time: 0.064s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
ERROR: Couldn't start the build. Unable to run tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants