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

Greeting Test Class is missing while testing for Java Project #6895

Open
satyanandak opened this issue Oct 15, 2024 · 10 comments
Open

Greeting Test Class is missing while testing for Java Project #6895

satyanandak opened this issue Oct 15, 2024 · 10 comments
Assignees
Labels
awaiting-maintainer Awaiting review from Bazel team on issues lang: java Java rules integration product: IntelliJ IntelliJ plugin topic: testing type: bug

Comments

@satyanandak
Copy link
Contributor

Description of the bug:

Hi Team,
We have observed that the Greetings Test class is missing while testing for Java Project in Intellij

Which category does this issue belong to?

No response

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

No response

Which Intellij IDE are you using? Please provide the specific version.

IntelliJ IDEA 2024.1.6 and IntelliJ IDEA 2024.2.2

What programming languages and tools are you using? Please provide specific versions.

Java

What Bazel plugin version are you using?

2024.10.08.0.1-api-version-242 & 2024.10.08.0.1-api-version-241

Have you found anything relevant by searching the web?

Screenshot 2024-10-15 2 57 17 PM

Any other information, logs, or outputs that you want to share?

No response

@mai93
Copy link
Collaborator

mai93 commented Oct 15, 2024

you can find the test classes under junit4 and junit5 folders. Please make sure tests in all these classes pass

@satyanandak
Copy link
Contributor Author

satyanandak commented Oct 16, 2024

@mai93 , Noted !
However, fast run and fast debug failing for both Junit4 and Junit5 Greeting Test Classes.

FastrunFatsdebug

@tpasternak
Copy link
Collaborator

I have looked at that. For some reason, the fast test requires deploy jars to be built, while these targets don't do that

@tpasternak
Copy link
Collaborator

@satyanandak can you please help us with rules_java issue 230?

@tpasternak
Copy link
Collaborator

ok, I managed to move forward, when I tried rules_java 8.1.0, and added these flags https://github.com/bazelbuild/rules_java/blob/9a8d8f32acb98e6a77ab2c455d24683623b14960/.bazelrc

However it still couldn't find java in bzlmod (because of new paths)

@tpasternak
Copy link
Collaborator

@mai93
Copy link
Collaborator

mai93 commented Oct 16, 2024

so users need to have the flags in https://github.com/bazelbuild/rules_java/blob/9a8d8f32acb98e6a77ab2c455d24683623b14960/.bazelrc for fast test to work?

@tpasternak
Copy link
Collaborator

they need these flags to get rules_java 8.1.0 to work

@tpasternak
Copy link
Collaborator

and versions prior to 8.1.0 are broken

@tpasternak
Copy link
Collaborator

🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-maintainer Awaiting review from Bazel team on issues lang: java Java rules integration product: IntelliJ IntelliJ plugin topic: testing type: bug
Projects
Status: Untriaged
Development

No branches or pull requests

5 participants