Skip to content
Advertisement

Command line is too long. Shorten command line for Test or also for JUnit default configuration?

im trying to run my junits, but intellij give me a error:

I have seen the error on many sites, but the configuration page is different than the current one from intellij.

Now, intellij-idea have this configuration page:

What would I have to modify to be able to fix it?

Here is my intellij info:

IntelliJ IDEA 2020.3.2 (Ultimate Edition) Build #IU-203.7148.57, built on January 26, 2021 Runtime version: 11.0.9.1+11-b1145.77 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 10 10.0 GC: ParNew, ConcurrentMarkSweep Memory: 1955M Cores: 8 Non-Bundled Plugins: com.dubreuia, org.sonarlint.idea, org.jetbrains.kotlin

Greetings and thank you very much: D

Advertisement

Answer

You can shorten the command line, by checking “Shorten Command Line” in the “Add Run Options” menu that is found under “Modify Options” in the “Build and Run” tab for the test configure – as shown below.

enter image description here

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement