When I run tests I get the error \"Command line is too long\". It works if I set the \"Shorten command line\" method in the Run/Debug configuration to \"JAR manifest\" for
If you use JDK version from 9+, you should select
Run > Edit Configurations... > Select JUnit template.
Then, select @argfile (Java 9+) as in the image below. Please try it. Good luck friends.