Skip to main content



      Home
Home » Eclipse Projects » RCP Testing Tool » [Blog] RCPTT & Code Coverage(Discussion topic for blog post )
icon1.gif  [Blog] RCPTT & Code Coverage [message #1698707] Wed, 17 June 2015 07:38 Go to next message
Eclipse UserFriend
Discussion topic for blog post https://www.eclipse.org/rcptt/blog/2015/06/17/code-coverage.html
Re: [Blog] RCPTT & Code Coverage [message #1706484 is a reply to message #1698707] Thu, 27 August 2015 05:09 Go to previous messageGo to next message
Eclipse UserFriend
Hi Olga,

You can probably update the blog post to support samples on how to use the jacoco maven plugin. We were able to do it like this:

  <build>
    <plugins>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <version>0.7.4.201502262128</version>
        <executions>
          <execution>
            <id>default-prepare-agent</id>
            <goals>
              <goal>prepare-agent</goal>
            </goals>
          </execution>
        </executions>        
      </plugin>      
      <plugin>
        <groupId>org.eclipse.rcptt</groupId>
        <artifactId>rcptt-maven-plugin</artifactId>
        <version>2.0.0</version>
        <extensions>true</extensions>
        <configuration>
          <runner>
            <version>2.0.0</version>
          </runner>
          <aut>
            <!-- up to you what to put here for aut -->
            <explicit>${rcptt.aut}</explicit>
            <vmArgs>
              <!-- this will let you pass the arguments set by JaCoCo to your AUT without specifying the explicit path of the JaCoCo agent -->
              <vmArg>${argLine}</vmArg>
            </vmArgs>
          </aut>
        </configuration>        
      </plugin>      
    </plugins>
  </build>
Re: [Blog] RCPTT & Code Coverage [message #1706879 is a reply to message #1706484] Mon, 31 August 2015 11:08 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I was just going through the cookbook in the blog, everything appeared to have run fine, except I can't import the coverage result file:

Error while reading execution data file file:/E:/Temp/Coverage.exec (code 5005).
Incompatible version 1007.


The jacocoagent.jar I'm using is from jacoco-0.7.5.201505241946.zip

Any idea?

thx,
Armin
Re: [Blog] RCPTT & Code Coverage [message #1706882 is a reply to message #1706879] Mon, 31 August 2015 11:17 Go to previous message
Eclipse UserFriend
Ok, based on this, I tried with jacoco-0.7.4.201502262128.zip which worked.
Previous Topic:RCPTT With Jenkins
Next Topic:Obtaining dependencies not included in the main update site
Goto Forum:
  


Current Time: Sat Jun 21 14:15:47 EDT 2025

Powered by FUDForum. Page generated in 0.04152 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top