Clover with Tycho: How to run with separate src and test dirs

Hi,

I have a bit of a different setup that described in this doc. https://confluence.atlassian.com/display/CLOVER/Using+Clover+with+Maven+Tycho+Plugin.

My setup looks more like this

module1

-src

module1.test

-src

module2

-src

module2.test

-src

module3

-src

module3.test

-src

Now from my understanding this might make things easier since I basicly dont need to create that seperate "instrumented" dir because my source is seperated. Is this a bad way to implement this? Should i create 1 dir for each module?

1 answer

This widget could not be displayed.

Hi Matt, you have to instrument into separate directory (project.instrumented.dir in the examplary Ant script) to ensure that you won't overwrite your original sources.

As you have test sources in separate projects and not in the /test subdirectory, then I guess it should be enough to delete the following line from the Ant script:

<!-- Define all package roots here -->
<dirset dir="${project.original.dir}">
   <include name="**/src"/>
   <!-- DELETE THIS LINE <include name="**/test"/> -->
</dirset>

Cheers
Marek

Thanks! I had another question regarding that ant script. Does anyone possibly have it written in a gradle script or maven syntax? Thanks.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published 55m ago in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

16 views 0 3
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you