[ 
https://issues.apache.org/jira/browse/BUILDR-707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14575478#comment-14575478
 ] 

Peter Donald commented on BUILDR-707:
-------------------------------------

We have been using jacoco over our tests for a long time. If I recall correctly 
all you need to do is add ```require 'buildr/jacoco'``` to the top of your 
build file and you should have .exec files created in the target directory. We 
then have jenkins pick them up.

Alternatively you can have jacoco generate html or xml reports by adding 
something similar to 

```
define 'myproject' do
  ...
  jacoco.generate_xml = true
  jacoco.generate_html = true
end
```

To find the tasks jacoco currently defines use ```buildr -T jacoco```

Hope that helps!


> Jacoco support
> --------------
>
>                 Key: BUILDR-707
>                 URL: https://issues.apache.org/jira/browse/BUILDR-707
>             Project: Buildr
>          Issue Type: Question
>            Reporter: Taylor K
>
> I have been trying to use Jacoco to report on my unit tests. It becomes 
> apparent that the JVM is never stopped, so the jacoco.exec output file is 
> empty. Is this something that buildr should be doing, stopping the jvm after 
> testing?
> Also, I noticed jacoco.rb in the addons directory. Does buildr plan to have a 
> jacoco task in the future?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to