Cannot run tests in intellij anymore

Answered

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?
 

 

0
14 comments

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 .idea folder 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!
 

0

I have the same issue.

Has this been solved with any newer versions?

0

Hi Kawu , could you please download the latest version of IntelliJ IDEA 2026.1 and see if the issue persists or not? Thanks.

0

The issue is still present in 2026.1 …

0

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.maven

Wait 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.

0

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.

0

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.maven

Wait 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.

0

This is the output of the current project:

PS C:\projects\retract> mvn test -D="HashUtilTest"                     
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::staticFieldBase has been called by com.google.inject.internal.aop.HiddenClassDefiner (file:/C:/dev/maven/lib/guice-5.1.0-classes.jar)
WARNING: Please consider reporting this to the maintainers of class com.google.inject.internal.aop.HiddenClassDefiner
WARNING: sun.misc.Unsafe::staticFieldBase will be removed in a future release
[INFO] Scanning for projects...
[WARNING] Quarkus Maven extension: an explicit 'argLine' is defined in maven-surefire-plugin config, but does not contain '@{argLine}': we will not be able to inject JVM parameters automatically. Please add '@{argLine}' to the argLine configuration you have defined.
[WARNING] Quarkus Maven extension: an explicit 'argLine' is defined in maven-failsafe-plugin config, but does not contain '@{argLine}': we will not be able to inject JVM parameters automatically. Please add '@{argLine}' to the argLine configuration you have defined.
[INFO] 
[INFO] --------------------< com.blabla.bla:retract >---------------------
[INFO] Building retract 1.0.0-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The artifact io.quarkus:quarkus-junit5:jar:3.34.3 has been relocated to io.quarkus:quarkus-junit:jar:3.34.3: Update the artifactId in your project build file. Refer to https://github.com/quarkusio/quarkus/wiki/Migration-Guide-3.31 for more information.
[INFO] 
[INFO] --- resources:3.3.1:resources (default-resources) @ retract ---
[INFO] Copying 3 resources from src\main\resources to target\classes
[INFO] 
[INFO] --- quarkus:3.34.3:generate-code (default) @ retract ---
Downloading from jboss-public-repository: https://repository.jboss.org/nexus/content/groups/public/com/blabla/bla/retract/1.0.0-SNAPSHOT/maven-metadata.xml
Downloading from jitpack.io: https://jitpack.io/com/blabla/bla/retract/1.0.0-SNAPSHOT/maven-metadata.xml
[INFO] 
[INFO] --- compiler:3.14.1:compile (default-compile) @ retract ---
[INFO] Recompiling the module because of added or removed source files.
[INFO] Compiling 80 source files with javac [debug parameters release 21] to target\classes
[INFO] 
[INFO] --- quarkus:3.34.3:generate-code-tests (default) @ retract ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  17.653 s
[INFO] Finished at: 2026-04-16T21:09:06+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:3.34.3:generate-code-tests (default) on project retract: Quarkus code generation phase has failed: Failed to parse command line arguments [test, -D=HashUtilTest]: InvocationTargetException: key can't be empty -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
0

Upload ID:

 

Upload id: 2026_04_16_keFx3PhzdwHeiXXn8m55bZ (file: idea-logs-20260416-21272112038075338614225345.zip)

0

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. 

 

 

1

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.maven

Wait 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

0

Please share the upload ID with us, thank you.

0

I uploaded it again. Upload id: 2026_04_21_6MM3Vys2RcZWt2w2pUKui6 (file: idea-logs-20260421-18015714611181013028486585.zip)

0

Hi, please disable develocity plugin and restart IDE to see if the issue persists or not.
https://plugins.jetbrains.com/plugin/27471-develocity

0

Please sign in to leave a comment.