Hi,

as Dominik said there is no specific code in the jacoco-plugin to do a 
per-module coverage-report in a multi-module build. And a multi-job project 
is no alternativ for me since there are about 100 modules in the build. So 
my solution would be to extend the jacoco-plugin. The jenkins plugin-API 
seems pretty nice so this shouldn't be too hard. But for now the overall 
coverage-report is sufficient for me.

Martin

On Wednesday, March 15, 2017 at 1:13:49 PM UTC+1, [email protected] wrote:
>
> Hi Martin,
>
> If you have any solution for your post please let me know. I'm also 
> looking for the same.
>
> One way of doing this is to create a "MultiJob Project" in Jenkins using 
> shared workspace option. After this, create one main job to run unit tests 
> from all the modules, and this will show overall code-coverage. 
> Now in-order to get coverage for any specific module, create another job 
> using "*Build a free-style software project" *and use *Record JaCoCo 
> coverage report* to filter coverage for the required module and mention 
> "child modules path" in *path to exec files *field.
> I know this is not the correct way of getting coverage per module wise as 
> this requires more effort in creating the job for each module. 
>
> If you or anyone have better solution please help!
>
> Thanks!
>
>
> On Sunday, March 5, 2017 at 3:36:46 PM UTC+5:30, Martin Hoerning wrote:
>>
>> Hi,
>>
>> I have a Multi-Module (~100 modules) maven-build and use Jacoco to record 
>> the code-coverage of the unit-tests. I use the jenkins post-build-action to 
>> generate the overall code-coverage chart and report. The report also 
>> contains a Coverage Breakdown by Package. But all is based on the overall 
>> code-coverage.
>>
>> Is it possible to have this per Module? Just like the site-report 
>> provided by the jacoco maven-plugin or the surefire testReport for each 
>> module.
>> Or is ist possible to show the jacoco site-report in each module in the 
>> Jenkins UI?
>>
>> I did not find any hints in this mailing-list or in the requests.
>>
>> Martin
>>
>

-- 
Azért kapta ezt az üzenetet, mert feliratkozott a Google Csoportok 
szolgáltatásbeli Jenkins JaCoCo plugin mailing list csoportra.
Az erről a csoportról és az ahhoz kapcsolódó e-mailekről való leiratkozáshoz 
küldjön egy e-amailt a(z) 
[email protected] címre.
Ha üzenetet szeretne küldeni ebbe a csoportba, küldjön egy e-mailt a(z) 
[email protected] címre.
További lehetőségekért látogasson el a(z) https://groups.google.com/d/optout 
címre.

Reply via email to