[Error] Command line is too long. (intellij 테스트 에러) 해결
by 코박7에러발생.
테스트 코드를 실행하니 실행은 안되고 처음보는 에러 발생.
Error running ServiceTest.create테스트. Command line is too long.
Shorten the command line and rerun. 를 클릭해야되는것처럼 클릭 이벤트가 있는 클릭하면 그 이후엔 다른 에러가 발생하며 다른 에러는 해결할 수 없어서 프로젝트를 밀어버리고 다시 clone 했다.
해결
- Run → Edit Configurations.. 접근
2. 처음에는 Shorten command line 부분이 보이지 않을 것이다. 그러면 위의 Modify options 를 눌러서 Shorten command line 을 체크해준다.
3. 추가된 Shorten command line 에서 JAR manifest 선택.
비고
이 오류는 테스트를 실행하는 명령어 라인이 너무 길어져서 생기는 오류라고 한다.
테스트를 새롭게 실행할 때마다 설정을 해줘야 하는데 한번에 설정하는 방법을 찾았다.
1. Edit configuration templates.. 접근
2. 위와 동일하게 Modify options → Shorten command line 추가, JAR manifest 체크.
이상.
'에러' 카테고리의 다른 글
블로그의 정보
코딩박스
코박7