首页 文章

Arquillian jacoco IT报道

提问于
浏览
0

我配置了2个项目使用最后一个jacoco版本0.7.8和最后一个Arquillian jacoco扩展(1.0.09Alpha)它就像一个魅力(对于jenkins和声纳6.2)!但是我有一个更大的项目,当我只启动Arquillian IT测试我的战争存档被创建并且所有类和测试都可以,当我使用IT代码覆盖运行相同的测试时,arquillian存档中不包含任何类并且具有此错误:

org.jboss.shrinkwrap.api.exporter.ArchiveExportException:无法将资产写入输出:/ WEB-INF / ...由以下原因引起:java.lang.RuntimeException:无法检测资产org.jboss.shrinkwrap.api.asset . ClassLoaderAsset

与其他项目BOM相同的配置Arquillian 1.1.12Final arquillian suite 1.1.2 container 2.0.2 testng .....

任何帮助?

1 回答

  • 1

    最后是lib错误确实库asm-debug-all版本被省略了,因为其他库(apache-tika-parsers)已经导入了旧版本(在pom.xml中)...在pom.xml中进行排除修复问题,我们可以在eclipse中检查依赖关系层次结构 .

    jacoco-arquillian扩展使用asm来执行代码...

    <dependency>
            <groupId>org.apache.tika</groupId>
            <artifactId>tika-parsers</artifactId>
            <version>1.9</version>
            <scope>${defaultScope}</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.bouncycastle</groupId>
                    <artifactId>bcprov-jdk15</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.bouncycastle</groupId>
                    <artifactId>bcmail-jdk15</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.ow2.asm</groupId>
                    <artifactId>asm-debug-all</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
    

相关问题