Run individual unit test maven #8048
Answered
by
matthiasblaesing
csrcordeiro
asked this question in
Q&A
-
In a maven based project, is it possible to run individual JUnit tests without going through the maven build process? |
Beta Was this translation helpful? Give feedback.
Answered by
matthiasblaesing
Dec 13, 2024
Replies: 1 comment 1 reply
-
In general you can run individual tests by invoking "Test File" from the context menu of the test class. That will invoke the maven build and run that single test. You can try to use "Compile on save" (Project settings: Build -> Compile): BUT(!) this falls into the category "From here on dragons". If it works, it is great, but it is not without problems so try it, but if it does not work, well.... |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
csrcordeiro
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In general you can run individual tests by invoking "Test File" from the context menu of the test class. That will invoke the maven build and run that single test. You can try to use "Compile on save" (Project settings: Build -> Compile):
BUT(!) this falls into the category "From here on dragons". If it works, it is great, but it is not without problems so try it, but if it does not work, well....