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

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

Matt Babineau September 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
Atlassian Team members are employees working across the company in a wide variety of roles.
September 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 September 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
TAGS
AUG Leaders

Atlassian Community Events