Jacoco maven plugin: when Integration project is different from source projet

86 views
Skip to first unread message

my selenium

unread,
Feb 13, 2015, 10:29:10 AM2/13/15
to jac...@googlegroups.com
Hi All,

I have 5 projects A1, A2, ... A5, each has its own Unit Tests, each project has its own pom.xml

Now I have another Integration Test project, having its own pom.xml,

I'd like to merge the report of this IT, together with all other 5 UTs, the result should be browsable on Jenkins. I know I need a Sonar + Jacoco working together. 

However I've googled around several days, trying to read and fail. There's no article telling me how to have Maven + Jacoco + Sonar working together when UT is in a different project from IT.

Any help is appreciated.

Thanks, 
MYN
Message has been deleted

my selenium

unread,
Feb 13, 2015, 10:40:52 AM2/13/15
to jac...@googlegroups.com
Maven = 3.2.1


However I don't have a master pom.xml to trigger the build of both IT and UT.

How can I adapt this example of yours to work for my project ?

Via EclEmma I could easily trigger UT and IT via clicking, and merge those reports easily. And I want to do it via maven,

Thanks a ton.
MYN<

Muineles

unread,
Feb 13, 2015, 11:19:19 AM2/13/15
to jac...@googlegroups.com
Hello,
For more information, here is my project, someone has already asked http://www.petrikainulainen.net/programming/maven/creating-code-coverage-reports-for-unit-and-integration-tests-with-the-jacoco-maven-plugin/, but the answer is not complete, and I wonder if I could do with MAVEN without using ANT

----------------

ProjectA
–> src
pom.xml

ProjectATest (depends on ProjectA)
–> test
pom.xml

ProjectB (depends on ProjectA)
–> src
pom.xml

ProjectBTest (depends on ProjectB)
–> test
pom.xml

ProjectITTests (depends on ProjectA and ProjectB)
–> test
pom.xml
------------------------

--
You received this message because you are subscribed to a topic in the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jacoco/4gxjtLiGIw8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/563af440-a376-4ef3-8391-d26b6715da08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marc Hoffmann

unread,
Feb 17, 2015, 12:06:20 PM2/17/15
to jac...@googlegroups.com
Hi,

I don't think so: The JaCoCo Maven plugin works for individual projects
only.

Regards,
-marc


On 2015-02-13 17:19, Muineles wrote:
> Hello,
> For more information, here is my project, someone has already asked
> http://www.petrikainulainen.net/programming/maven/creating-code-coverage-reports-for-unit-and-integration-tests-with-the-jacoco-maven-plugin/
> [5], but the answer is not complete, and I wonder if I could do with
> MAVEN without using ANT
>
> ----------------
>
> ProjectA
> –> src
> pom.xml
>
> ProjectATest (depends on ProjectA)
> –> test
> pom.xml
>
> ProjectB (depends on ProjectA)
> –> src
> pom.xml
>
> ProjectBTest (depends on ProjectB)
> –> test
> pom.xml
>
> ProjectITTests (depends on ProjectA and ProjectB)
> –> test
> pom.xml
> ------------------------
>
> On 2/13/2015 4:40 PM, my selenium wrote:
>
>> Maven = 3.2.1
>>
>> Your example
>>
> https://github.com/SonarSource/sonar-examples/tree/master/projects/languages/java/code-coverage/combined%20ut-it/combined-ut-it-multimodule-maven-jacoco
>> [1]. is a nice start.
>> [2].
>> To unsubscribe from this group and all its topics, send an email to
>> jacoco+un...@googlegroups.com.
>> To view this discussion on the web visit
>>
> https://groups.google.com/d/msgid/jacoco/563af440-a376-4ef3-8391-d26b6715da08%40googlegroups.com
>> [3].
>> For more options, visit https://groups.google.com/d/optout [4].
>
> --
> You received this message because you are subscribed to the Google
> Groups "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to jacoco+un...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jacoco/54DE2402.7070703%40gmail.com
> [6].
> For more options, visit https://groups.google.com/d/optout [4].
>
>
> Links:
> ------
> [1]
> https://github.com/SonarSource/sonar-examples/tree/master/projects/languages/java/code-coverage/combined%20ut-it/combined-ut-it-multimodule-maven-jacoco
> [2] https://groups.google.com/d/topic/jacoco/4gxjtLiGIw8/unsubscribe
> [3]
> https://groups.google.com/d/msgid/jacoco/563af440-a376-4ef3-8391-d26b6715da08%40googlegroups.com?utm_medium=email&amp;utm_source=footer
> [4] https://groups.google.com/d/optout
> [5]
> http://www.petrikainulainen.net/programming/maven/creating-code-coverage-reports-for-unit-and-integration-tests-with-the-jacoco-maven-plugin/
> [6]
> https://groups.google.com/d/msgid/jacoco/54DE2402.7070703%40gmail.com?utm_medium=email&utm_source=footer

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages