简体   繁体   中英

jacoco agent on wildfly - 0% on covered classes

I've attached a jacoco agent to a widlfly instance, in order to have code coverage for server side code, while running selenium tests. The exec file is generated but when I import the file to Intellij, it shows 0% of coverage for every class.

I've this options when I start wildfly: -javaagent:c:/dev/jacoco/jacocoagent.jar=destfile=c:/dev/jacoco.exec

Is there anything missing?

The classes I want to cover are in a jar (maven dependency) placed inside the war against which I run the tests.

Thanks for your help!!

我在IntelliJ中开始使用wildfly并使用IntelliJ运行selenium测试(selenium服务器正在从正常的bat脚本外部启动)。

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