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

Support executing a maven test directly #1469

Open
laeubi opened this issue Jul 6, 2023 · 2 comments
Open

Support executing a maven test directly #1469

laeubi opened this issue Jul 6, 2023 · 2 comments

Comments

@laeubi
Copy link
Member

laeubi commented Jul 6, 2023

Sometime one might want to execute a single test as maven, but currently this needs to be triggered manually, it would be good to have a direct option from the menu:

grafik

this then should execute mvn test -Dtest=<name of test class>

@mickaelistria
Copy link
Contributor

I would expect that the Maven test shortcut do that by default when a test class is selected.

@laeubi
Copy link
Member Author

laeubi commented Jul 6, 2023

"Maven test" performs mvn test on the root pom only, as far as I can see m2e currently do not evaluates the context of the selection any further, I would even think of removing all the default shortcuts (except Maven build ...) in such a case to not overload the menu.

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