如何在使用 jacoco 在 spring Boot 中运行代码覆盖率时排除某些包

问题描述

        <plugin>
            <groupId>org.jacoco</groupId>
            <artifactId>jacoco-maven-plugin</artifactId>
            <configuration>
                <excludes>
                    <exclude>**/package1/subpackage/*</exclude>
                </excludes>
            </configuration>
        </plugin>

我想忽略某个包下的所有类。 我正在运行 Eclipse 本身中给出的代码覆盖率选项。 如果有什么不对的地方评论

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)