How to exclude code (packages) in jococo, eclemma

蹲街弑〆低调 提交于 2020-01-06 06:44:04

问题


I am trying to exclude code in jococo. I have given for the package that I want to exclude and vice versa tags in my code for the package that I want to include.

but still ECLEMMA while junit coverage is reading whole code i.e. all packages and hence my code coverage goes down.

Here is my code:

              <includes>
               <include>com.cfgh.controller.*</include>
               <include>com.cfgh.service.*</include>
               <include>com.cfgh.repository.*</include>
              </includes>

               <excludes>
               <exclude>com.cfgh.config.*</exclude>
               <exclude>com.cfgh.model.dto.*</exclude>
               <exclude>com.cfgh.model.entity.*</exclude>
               <exclude>com.cfgh.repository.*</exclude>
               <exclude>com.cfgh.exception.handler.*</exclude>

The include and exclude tags appear in green in pom.xml file, but still it is not reading it. Can someone please guide me here in right direction.Thanks in advance

来源:https://stackoverflow.com/questions/49456971/how-to-exclude-code-packages-in-jococo-eclemma

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!