idea 全局修改:

  1. 打开idea->run-> run configuration
    idea 解决Error running ‘Test’: Command line is too long.
  2. 点击设置
    idea 解决Error running ‘Test’: Command line is too long.
  3. 跳转JUnit 页面之后,修改Short command line 为 JAR manifest 开头的选项,再点击保存
    idea 解决Error running ‘Test’: Command line is too long.

相关文章: