2016년 9월 1일 목요일

Maven으로 특정 유닛테스트만 실행하기

서버에서 테스트 케이스를 실행하고 싶을 때가 있다.

어떻게 하면 될까?

#!/bin/bash
mvn test -Dtest={testClassName}
view raw mavenTest.sh hosted with ❤ by GitHub

maven test로 특정 testClass 만 실행할 수 있다. 참고사이트