문제

I work on a multi module project. We have UT and IT in each module. We use failsafe plugin to execute integration tests. We need to be able to execute a single integration test from command line (it works fine in eclipse). When i issue mvn verify -rf cmil-document -Dtest=IDocumentFacadeIT#changeDocumentTest the test is executed - I see output log in system console. At first I wasn't able to find the failsafe report. Later I checked surefire reports folder and I found the integration test report in it.

Well it is not a big deal to open it from the displaced location, but still my question is: Do I miss the proper way to run a single integration test or maven/one of the plugins is somehow consfused?

도움이 되었습니까?

해결책

-Dtest is for surefire, whereas for failsafe you should use -Dit.test, see the User Property for test

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top