Hi all, i am moving from teamcity to gitlab. I was able to create a project and to run a pipeline of it every time that i do a commit. Now i want to add the feature regarding how many lines i tested when i send a MR but all the things that i tried fail.
i was able to generated a dotcover report and via reportgenerator generate a cobertura.xml report. But i dont know what i am doing wrong. Here is my CI file
default: image: microsoft/dotnet:latest stages: - build - test - cover variables: TEST: "HELLO WORLD" TEST_PROJECT: "YES" build: tags: - windows stage: build script: - echo $CI_JOB_STAGE - dotnet build test: stage: test tags: - windows rules: - if: '$TEST_PROJECT == "YES"' script: - echo "Excecuting tests" - dotnet test cover: stage: cover tags: - windows script: - cd GitlabPOC.Test - dotnet restore - dotnet dotcover test --dcXML="DotCoverConfig.xml" - tools\reportgenerator.exe "-reports:dotcover.Output.xml" "-targetdir:coverage" -reporttypes:Cobertura artifacts: when: always reports: cobertura: GitlabPOC.Test\coverage\coverage.xml
someone has the same issue?
Other question that i have, is if there is a way to add to the MR more information regarding code coverage, something like this
Thanks in advance