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

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

Matt Babineau Sep 27, 2013

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 votes
Marek Parfianowicz Atlassian Team Sep 29, 2013

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

Matt Babineau Sep 29, 2013

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Opsgenie

Handling Opsgenie Alerts

Hi everyone, welcome to the kb articles for Opsgenie FAQs. I'm one of the Technical Support Engineers for Opsgenie who will be providing weekly posts on FAQs from customers.   All alerts are ...

72 views 0 3
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