在插件中查询junit,选择junitGenerator V2.0进行安装,然后重启,如下图: image.png 重启之后,编辑junit4中的脚本,去掉package test.$entry.packageName,如下图: image.png