Reputation: 3002
I want to run JUnit tests in IntelliJ separately. I need to pass special configuration to run them. Everytime I want to run new test I have to create new run configuration. I need to pass VM argument: -Dwebdriver.firefox.bin="C:\Program Files (x86)\Mozilla Firefox_16en\firefox.exe"
as well as Environment variables
.
How do I define those configuration details once and the just run the particular test I want with those settings?
Upvotes: 1
Views: 1477
Reputation: 31
Run/Debug configuration Templates and set all your thingies there
Upvotes: 0
Reputation: 16709
If you want to change the default run/debug configuration settings, expand the Defaults node, select the desired configuration type, and modify it as required.
Open Run > Edit Configurations
. Select Defaults > JUnit
in the left tree and add your VM arguments. Those arguments will be used for every new JUnit run configuration automatically.
Upvotes: 2