Error in idea unit test command line is too long

Question

Recently, I changed the computer and reconfigured the development environment. During unit testing, I found that the idea reported an error

Error running '*******Test.******' 
Command line is too ling. Shorten command line for ******* or also for JUnit default configuration.

Solution

Edit the workspace.xml tag under the project. Idea

<component name=“PropertiesComponent”>

Add next

<property name="dynamic.classpath" value="true" />

Read More: