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

0 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted 7 hours ago in Confluence

Calling all marketing teams who use Confluence - we want to hear from you!

Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...

31 views 1 2
Join discussion

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