Skip to content
Snippets Groups Projects
Yen-Chen Chen's avatar
Yen-Chen Chen authored
<!--
ICON

---------------------------------------------------------------
Copyright (C) 2004-2024, DWD, MPI-M, DKRZ, KIT, ETH, MeteoSwiss
Contact information: icon-model.org

See AUTHORS.TXT for a list of authors
See LICENSES/ for license information
SPDX-License-Identifier: CC0-1.0
---------------------------------------------------------------
-->

## What is the new feature
Add code coverage.
## How is it implemented
Directly add in pipeline. The total coverage percentage will be shown in the MRs.  
Reference: [coverage](https://docs.gitlab.com/ee/ci/testing/code_coverage.html), [coverage visualization](https://docs.gitlab.com/ee/ci/testing/test_coverage_visualization.html

)
- [x] Some CMake/FortUTF files are picked up in the coverage. Find a way to remove them.
- [x] Backtrace test fails in sphinx runner.
- [x] Ragel generated files cannot be processed by gcovr.  
* Backtrace function and codes generated by Ragel are not supported in this version.

## Mandatory steps before review
- [x] Gitlab CI passes _(Hint: use `make format` for linting)_ 
- [x] New feature is covered by additional unit tests
- [x] Mark the merge request as ready by removing `Draft:`

## Mandatory steps before merge
- [x] Reviewed by a maintainer
- [ ] Incorporate review suggestions
- [ ] Remember to edit the commit message and select the proper changelog category (feature/bugfix/other)

**You are not supposed to merge this request by yourself, the maintainers of fortan-support take care of this action!**

Approved-by: default avatarJonas Jucker <jonas.jucker@env.ethz.ch>
Merged-by: default avatarJonas Jucker <jonas.jucker@env.ethz.ch>
Changelog: feature
c4abb003
History
Name Last commit Last update
..