Cannot run tests in intellij anymore
intellij #IU-253.30387.90
I have a maven/java project that i'd had for ages. It's a maven project, so i have a bunch of jakarta, spring etc. plugins enabled.
I have always been used to click on a specific test class or method marked with @Tests and run it. I have also always been able to select a directory and choose “Run tests in…” from the popup.
In this version of intellij, nothing happens when i press the top run or debug buttons. Same if i right click on the method, or in the left navigation tree and select “run tests”… It's totally silent, no progress, no message.
I just tried installing 2025.1 and it works fine there, no issues.
---
As for idea.log:
1. when i press the play button and nothing happens, there's nothing in the log.
2. If i click as single method in a testclass, nothing happens and also nothing in the log
3. if i select a testclass and do “Run MyCoolTestClass” nothing happens visually at all but i have tons of logging:
Couldn't find proper module entity for project TheProject
Current modules: Module: 'testcommons' type=JAVA_MODULE, Module: 'websecurity' type=JAVA_MODULE, Module: 'webclient' type=JAVA_MODULE, Module: 'xcommons' type=JAVA_MODULE, Module: 'xtelecom' type=JAVA_MODULE, Module: 'it' type=null, Module: 'webshared' type=JAVA_MODULE, Module: 'webgwtcommons' type=JAVA_MODULE, Module: 'webapp' type=JAVA_MODULE, Module: 'observercore' type=JAVA_MODULE, Module: 'push' type=JAVA_MODULE, Module: 'core' type=JAVA_MODULE, Module: 'gwtwebcommons' type=JAVA_MODULE, Module: 'webcommons' type=JAVA_MODULE, Module: 'observerweb' type=JAVA_MODULE, Module: 'webskin' type=JAVA_MODULE, Module: 'webmaps' type=JAVA_MODULE, Module: 'backoffice' type=JAVA_MODULE, Module: 'nubaintegration' type=JAVA_MODULE, Module: 'webadmincommons' type=JAVA_MODULE, Module: 'xmessaging' type=JAVA_MODULE, Module: 'xk' type=null, Module: 'messagingcommons' type=JAVA_MODULE, Module: 'securitycore' type=JAVA_MODULE, Module: 'gwtmaps' type=JAVA_MODULE
..followed by a bunch of modules debug info
4. Same thing if i click a test directory. nothing happens but a lot of debug printout in the log. Not flagged as errors though, just warnings.
I have of course tried to sync and reload the entire (maven) project. It does so successfully but it does not help.
Any idea what this could be?
请先登录再写评论。
Hi Mathias, thanks for your report.
Please try to re-import this project using the following steps:
1. Close project (File | Close project);
2. Close all instances of IDEA;
3. Rename or remove the System Directory;
4. Rename or move to another directory the
.ideafolder from the project directory;5. Re-import the Project: Open → Navigate to the Project's directory → Double-click the root
pom.xml→ Open as Project.If it doesn't help, please provide more details:
1. Share screenshots of Settings | Build, Execution, Deployment | Build Tools | Maven and Settings | Build, Execution, Deployment | Build Tools | Maven | Runner;
2. Check if this issue is reproducible in a new project;
3. Check if this issue persists with the same project in the IntelliJ IDEA 2026.1 EAP from https://www.jetbrains.com/idea/nextversion/
Please let us know the results. Thank you!
I have the same issue.
Has this been solved with any newer versions?
Hi Kawu , could you please download the latest version of IntelliJ IDEA 2026.1 and see if the issue persists or not? Thanks.
The issue is still present in 2026.1 …
Hi Kawu , is it possible for you to share a sample project which can stably reproduce this issue?
Meanwhile, please go to Help | Diagnostic Tools | Debug Log Settings, add this line and click OK:
org.jetbrains.idea.mavenWait for the issue to happen againCollect logs immediately via Help | Collect Logs and Diagnostic Data
Please upload the zip file to https://uploads.jetbrains.com/, and share the Upload ID with us.
Hello.
Sorry, due to time issues, I cannot provide a sample project.
However: just take any project with a test and run the green triangle. I know from colleagues, that all IJ 2025.3 version and newer suffer from the same problems.
Hi Kawu , yes I tried, but failed to reproduce this issue in 2026.1.
What if you run the command
mvn test -Dtest=<testname>in IDEA Terminal from the project root? The same behavior or not? Thanks!If possible, it will be helpful to take the log when you have time to use 2025.3 or newer version to reproduce this issue. I can share the logs with developers to do further investigation:
Please go to Help | Diagnostic Tools | Debug Log Settings, add this line and click OK:
org.jetbrains.idea.mavenWait for the issue to happen againCollect logs immediately via Help | Collect Logs and Diagnostic Data
Please upload the zip file to https://uploads.jetbrains.com/, and share the Upload ID with us.
This is the output of the current project:
Upload ID:
Upload id: 2026_04_16_keFx3PhzdwHeiXXn8m55bZ (file: idea-logs-20260416-21272112038075338614225345.zip)
Hi Kawu , thank you for sharing the log.
The IDE is hitting Windows' command-line length limit when launching java.exe for the test runner:
ProcessNotCreatedException: Cannot run program "…java.exe": CreateProcess error=206, The filename or extension is too long
This is a long-standing known issue tracked as https://youtrack.jetbrains.com/issue/IDEA-332646. Please follow/vote it for updates.
Meanwhile, please try the following:
1. Run → Edit Configurations → Modify options → Shorten command line → @argfile (Java 9+). If that still fails, try classpath file, then JAR manifest. Apply the same in Edit configuration templates | JUnit so new configs inherit it.
2. If the configuration delegates to Maven, switch Settings | Build, Execution, Deployment | Build Tools | Maven | Runner , make sure the option “Delegate IDE build/run actions to Maven” is unselected.
3. In the JUnit configuration, set Search for tests: in single module rather than running a cross-module pattern.
I have the same issue.
I followed these steps:
Please go to Help | Diagnostic Tools | Debug Log Settings, add this line and click OK:
org.jetbrains.idea.mavenWait for the issue to happen againCollect logs immediately via Help | Collect Logs and Diagnostic Data
Please upload the zip file to https://uploads.jetbrains.com/, and share the Upload ID with us.
The tests do run when I do a `mvn verify`. The issue occurs in a maven multi module project project that contain module-info.java files
Please share the upload ID with us, thank you.
I uploaded it again. Upload id: 2026_04_21_6MM3Vys2RcZWt2w2pUKui6 (file: idea-logs-20260421-18015714611181013028486585.zip)
Hi, please disable develocity plugin and restart IDE to see if the issue persists or not.
https://plugins.jetbrains.com/plugin/27471-develocity