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

Documentation: explain how to run tests #231

Closed
drigz opened this issue Feb 5, 2018 · 6 comments
Closed

Documentation: explain how to run tests #231

drigz opened this issue Feb 5, 2018 · 6 comments

Comments

@drigz
Copy link

drigz commented Feb 5, 2018

It's easy to build the entire project by selecting Bazel > Build > Compile Project. However, it was unclear how to run all the tests.

It would be good to document this below "Building your project" here: https://ij.bazel.build/docs/bazel-plugin.html#building-your-project

My method was:

  1. Run > Edit configurations
  2. Click "+"
  3. Select "Bazel Command", and fill in:
    a. Target expression: //...
    b. Bazel command: test
  4. OK, then click the "Play" button (Shift+F10)

But I don't know if this is the easiest way.

@brendandouglas
Copy link
Contributor

This is very much project specific. bazel test //... won't work for many projects, because individual targets might need specific flags to build correctly (for example, this project).

In general, this is covered by the Run Configurations section of the docs.

@drigz
Copy link
Author

drigz commented Feb 6, 2018

Thanks for the pointer - that page is very helpful. As a new user, it wasn't clear that instructions for testing were in the "Run Configurations" section. Maybe it could be called "Run Configurations & Testing"? Or maybe the Getting Started section (which currently only contains installation instructions and a link to "Importing a Project") could contain:

  1. Installation (as already there)
  2. Select *Import Bazel project" from the Welcome screen and follow the instructions (more details in Importing a Project).
  3. Select Bazel > Build > Compile Project to build the project.
  4. See Run Configurations for details on testing and debugging.

FYI, there's a couple of differences between the docs and my plugin:

I hope this is useful feedback. This is a very helpful plugin now I'm figuring out how to use it, so thanks for developing it!

@ittaiz
Copy link
Member

ittaiz commented Feb 6, 2018 via email

@drigz
Copy link
Author

drigz commented Feb 6, 2018

Are you a new intellij user?

Yes.

@ittaiz
Copy link
Member

ittaiz commented Feb 6, 2018 via email

@mai93 mai93 added the type: user support User support label Feb 8, 2021
@sgowroji
Copy link
Member

Hi there! We're doing a clean up of old issues and will be closing this one. Please reopen if you’d like to discuss anything further. We’ll respond as soon as we have the bandwidth/resources to do so.

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

No branches or pull requests

6 participants