Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 11:38 Go to next message
Olga Yurchuk is currently offline Olga YurchukFriend
Messages: 245
Registered: September 2014
Senior Member

Discussion topic for blog post https://www.eclipse.org/rcptt/blog/2015/06/17/code-coverage.html

Yours sincerely,
Olga.
Re: [Blog] RCPTT & Code Coverage [message #1706484 is a reply to message #1698707] Thu, 27 August 2015 09:09 Go to previous messageGo to next message
Joseph Benavides is currently offline Joseph BenavidesFriend
Messages: 47
Registered: February 2015
Member
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 15:08 Go to previous messageGo to next message
Armin Mueller is currently offline Armin MuellerFriend
Messages: 33
Registered: July 2009
Member
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 15:17 Go to previous message
Armin Mueller is currently offline Armin MuellerFriend
Messages: 33
Registered: July 2009
Member
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: Fri Apr 19 16:18:05 GMT 2024

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

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

Back to the top