Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • autosubmit autosubmit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 338
    • Issues 338
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 21
    • Merge requests 21
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • autosubmitautosubmit
  • Wiki
  • Code coverage

Code coverage · Changes

Page history
Create Code coverage authored Mar 31, 2023 by Bruno de Paula Kinoshita's avatar Bruno de Paula Kinoshita
Hide whitespace changes
Inline Side-by-side
Code-coverage.md 0 → 100644
View page @ 2ed0ffbb
GitLab gives us the coverage report free of charge.
There are two places that we did in the Autosubmit case to have coverage. First we added a regular expression that gives a coverage number in one of our jobs of our CICD pipeline: https://earth.bsc.es/gitlab/es/autosubmit/-/blob/master/.gitlab-ci.yml#L32
![image](/uploads/827b1e7870d078c17c9d7c3e6cd1ffad/image.png)
Then, given we had a command already producing coverage report compatible with Cobertura format (here: https://earth.bsc.es/gitlab/es/autosubmit/-/blob/master/.gitlab-ci.yml#L31), we just had to use the `artifact` as you pointed: https://earth.bsc.es/gitlab/es/autosubmit/-/blob/master/.gitlab-ci.yml#L36-40
This `artifact` with a coverage report value gets used by GitLab to produce the diff in the merge requests. It normally takes a few seconds (1 minute?) for the coverage to appear on the merge request. And it only works if GitLab has a feature enabled (in the past they had it disabled by default due to performance).
![image](/uploads/a93780fd0b14d9bd94fe9f3e3364c466/image.png)
p.s.: we can archive other things in our pipelines, like XML files, Autosubmit configuration files, screenshots, etc., https://docs.gitlab.com/ee/ci/pipelines/job_artifacts.html
\ No newline at end of file
Clone repository
  • Code coverage
  • Deployment
  • Issues documenting different aspects
  • Leaflet
  • Possible Operational Problems and Solutions
  • Running Autosubmit in Earth Sciences
  • Testing_Suite
  • Updating ReadTheDocs Autosubmit documentation
  • Visual Identity
  • [DestinE] Autosubmit VM on Lumi
  • background
  • bibtex
  • databases
  • development
  • dissemination
View All Pages