JUnit: Default "Run Test" Button creates an Ant Build instead of a JUnit Test Run Configuration
Answered
I've noticed this behavior in my old working directory: If I want to run a test class which has never been running on my system before it creates by default an Ant Build instead of a JUnit Run Configuration.
Afterwards I've created a totally new workspace to see if this manner persists in my whole IntelliJ IDE or if it is just a project setting. And the same results appears: new Testclass -> new Testmethod -> Run Tests -> Ant Build
How can I change this default setting? How can I adjust this to create a Default JUnit Test Run Configuration if I try to Run Tests?
Please sign in to leave a comment.
Hello Jan,
Is it possible to share sample project with generated Run/Debug configuration?
Hello Yaroslav,
sure. Here is the xml:
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Unnamed" type="AntRunConfigurationType" factoryName="Ant build" debug-port="25000" jdk-name="1.6" max-memory="256" logging-level="0">
<file>$PROJECT_DIR$/src/TestFirst.java</file>
<method />
</configuration>
</component>
Thank you for your help.
Jan,
Do you have Ant icon near "Create <File_Name>" option in context menu on test file?
Also please provide idea.log (Help - Show Log in...) after restarting IDEA and reproducing the issue.
Hi,
I've made some screenshots and put it in the same zip file as the log. You can download this zip here: https://dl.dropboxusercontent.com/u/22474012/JB_IntellijSupp201701.zip
Hope this will answer your question.
Jan,
Thanks for screenshots! Could you please try to temporary disable custom plugins:
```
Loaded custom plugins: Ant Debugger v1.2.0 (1.3.0), Gerrit (0.9.9.1-146), IdeaVim (0.48), Multirun (1.5), Tapestry 4.1 Support (0.1.2), WicketForge (5.0.2)
```
Ok,
really good hint. If I disable the Ant Debugger v1.2.0 then everything works fine.
Only a info box popped up which shows the following text:
Plugins Suggestion
Unknown feature (Run Configuration[AntRunConfigurationType]) covered by disabled plugin detected.
Enable plugins...
Ignore Unknown Features
Jan,
Do you still have Run configurations created by that plugin? Please try to delete them - message should disappear.
Yaroslav,
thank you very much. You've solved my problem.