问题:Error running 'XXX': Cannot start process, the working directory 'xxx\xxx\xxx ' does not exist
背景:最近更改类IDEA某个JAVA项目的名称,使用Junit测试项目时报错:Error running 'XXX': Cannot start process, the working directory 'xxx\xxx\xxx ' does not exist。
原因:更改项目名称,原有的测试路径发生变化。
解决方法:
打开:IDEA>Run>Edit Configurations
删除左边JUnit下面测试方法,再次运行即可。