I am wanting to set up a Run/Debug Configuration in IntelliJ for JUnit. I know how to set it up to run a specific package
, a specific class
, or a specific method
. I was wondering if there was a way to set up the configurations so it will run the currently opened Class
file or the currently selected test method
. I would imagine I would put something like this in the Class
field of the Run/Debug Configurations
dialog box:
my.package.tests.${currentTest}
or something like that. Is there a way to accomplish this so I don't have to make a Run/Debug Configuration for each test class I want to run?