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

Test cases not launching through IDE since java 11 upgrade #3311

Open
PritiKumari95 opened this issue Nov 2, 2023 · 3 comments
Open

Test cases not launching through IDE since java 11 upgrade #3311

PritiKumari95 opened this issue Nov 2, 2023 · 3 comments

Comments

@PritiKumari95
Copy link

What happened?

Not able to execute test cases through IDE getting error as 'not able to load main method : ../bin/serenity' whereas while executing through command prompt i could execute it successfully

What did you expect to happen?

Test cases should be executed through IDE.

Serenity BDD version

4.0.1

JDK version

11

Execution environment

No response

How to reproduce the bug.

by updating sourceCompatibility to java 11 in build.gradle file

How can we make it happen?

Work on this myself and propose a PR (with Serenity BDD team guidance)

@wakaleo
Copy link
Member

wakaleo commented Nov 5, 2023

Sound's like an IDE/JDK configuration issue.

@PritiKumari95
Copy link
Author

I have configured it in IDE build path, also in environment variables. Still the test cases work fine through command prompt but fails with IDE.

@wakaleo
Copy link
Member

wakaleo commented Nov 30, 2023

If it works from the command prompt but not in the IDE, then it is definitely an IDE configuration issue. If you do find a solution and can document it here, I will include it in a troubleshooting section in the documentation.

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

2 participants