Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Optimizing integration tests with Clover

I have the following profile set up to optimize my integration tests, yet every test is run every time when I run "mvn verify -Pclover-optimize." What am I doing wrong?

<profile>

<id>clover-optimize</id>

<build>

<plugins>

<plugin>

<groupId>com.atlassian.maven.plugins</groupId>

<artifactId>maven-clover2-plugin</artifactId>

<executions>

<execution>

<goals>

<goal>setup</goal>

<goal>optimizeIntegration</goal>

<goal>snapshot</goal>

</goals>

<configuration>

<optimizeIncludes>

<optimizeInclude>**/IT*.java</optimizeInclude>

<optimizeInclude>**/*IT.java</optimizeInclude>

<optimizeInclude>**/*ITCase.java</optimizeInclude>

</optimizeIncludes>

</configuration>

</execution>

</executions>

</plugin>

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-surefire-plugin</artifactId>

<configuration>

<argLine>-Xmx1536m -XX:MaxPermSize=384m</argLine>

</configuration>

<executions>

<execution>

<id>integration</id>

<phase>integration-test</phase>

<goals>

<goal>test</goal>

</goals>

<configuration>

<includes>

<include>**/IT*.java</include>

<include>**/*IT.java</include>

<include>**/*ITCase.java</include>

</includes>

</configuration>

</execution>

</executions>

</plugin>

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-failsafe-plugin</artifactId>

<configuration>

<skip>true</skip>

</configuration>

</plugin>

</plugins>

</build>

</profile>

1 answer

Hi Heather, I took your configuration and it's correct (Clover indeed optimizes tests). Could you provide more data, like build log, code sample?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Learn how to request and manage app requests in the Marketplace

G’day everyone! Super exciting news coming from the Marketplace. We have now fully rolled out the ability for end-users to submit app requests to admins directly from within the product! No longer ...

43 views 1 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you