如何将Jacoco / Cobertura实施到Maven并将报告发送到代码Cov

我正在尝试将jacoco或cobertura实施到我的Maven项目中,然后将报告发送给codecov。 codecov有一些示例,但是它们已经过时了,不再起作用了。我的项目仓库是https://github.com/gitcloneguy/pumpndump,这是我的pom.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.mrrandom.JavacordBot</groupId>
    <artifactId>pumpndump</artifactId>
    <version>1.2.1</version>
    <name>pumpndump</name>
    <description>A discord bot made with Javacord</description>
    <properties>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.javacord</groupId>
            <artifactId>javacord</artifactId>
            <version>3.0.6</version>
            <type>pom</type>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-assembly-plugin</artifactId>
      <executions>
        <execution>
          <goals>
            <goal>attached</goal>
          </goals>
          <phase>package</phase>
          <configuration>
            <descriptorRefs>
              <descriptorRef>jar-with-dependencies</descriptorRef>
            </descriptorRefs>
            <archive>
              <manifest>
                <mainClass>com.mrrandom.JavacordBot.Main</mainClass>
              </manifest>
            </archive>
          </configuration>
        </execution>
      </executions>
    </plugin>
        </plugins>
  </build>
</project>
hank112 回答:如何将Jacoco / Cobertura实施到Maven并将报告发送到代码Cov

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2352403.html

大家都在问