简体   繁体   中英

maven failsafe -Dtest reports written to surefire=reports folder

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用于-Dtest ,而对于故障安全,则应使用-Dit.test ,请参见用户属性以进行测试

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM