gitlab-plugin icon indicating copy to clipboard operation
gitlab-plugin copied to clipboard

Support reporting test coverage to gitlab merge requests

Open keirlawson opened this issue 8 years ago • 11 comments

Gitlab supports reporting test coverage through its merge request UI, and they have just exposed this functionality via their API: https://gitlab.com/gitlab-org/gitlab-ce/issues/27807

Would be great to have inbuilt support for deriving a test coverage figure from a jenkins job and updating gitlab accordingly

keirlawson avatar Feb 15 '17 14:02 keirlawson

The feature is available in the Gitlab v4 API. To derive true test coverage one needs to use something like the Cobertura plugin. Jenkins has a so called health state (when you publish JUnit test results) that you can configure yourself. Would that be a option?

mreichel avatar Mar 29 '17 09:03 mreichel

Would be blocked until we have v4 API support. #530.

omehegan avatar Jul 06 '17 05:07 omehegan

is anyone interested in submitting a PR ?

andrei-cacio avatar Nov 16 '17 09:11 andrei-cacio

Any news on this?

heppu avatar Oct 23 '19 08:10 heppu

+1 would be interested in this as well

oolfloo avatar Apr 09 '20 11:04 oolfloo

Any updates here? This prevents us from implementing a solid merge-request & code coverage focused microservice architecture.

Zahlii avatar Jan 20 '21 15:01 Zahlii

Maybe it would be even better to support uploading pipline artifacts to GitLab in General? As far as I know, the coverage reports are just a specialized type of pipeline artifact.

timvahlbrock avatar May 05 '21 14:05 timvahlbrock

Maybe it would be even better to support uploading pipline artifacts to GitLab in General? As far as I know, the coverage reports are just a specialized type of pipeline artifact.

Which would be #486

timvahlbrock avatar May 05 '21 14:05 timvahlbrock

+1 for this

OBorce avatar May 26 '21 21:05 OBorce

Interested as well. Thanks for the investigation

builder-main avatar Jul 22 '21 19:07 builder-main

Hi, any update on this?

kamilzajacdeviniti avatar Dec 28 '22 10:12 kamilzajacdeviniti