Skip to content

Commit

Permalink
Remove CodeCov (#276)
Browse files Browse the repository at this point in the history
* Remove CodeCov

* Remove codecov.yml
  • Loading branch information
kerbou authored Jan 11, 2024
1 parent f396809 commit c89c156
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 64 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ Artifacts should be organized in the following folder structure:
├── .editorconfig
├── .gitignore
├── .licenserc.json
├── codecov.yml
├── LICENSE
└── README.md
```
Expand All @@ -45,7 +44,6 @@ Contains:
- `.editorconfig` file for configuration of Formatting, Code Style and Analyzers (including StyleCop).
- `.gitignore` file that defines which files should be ignored (not checked in) by Git.
- `.licenserc.json` file that defines the expected license header of certain file types.
- `codecov.yml`file contains the CodeCov configuration outlining the flags/projects where code coverage is tracked.
- `LICENSE` License information for all code within this repository.
- `README.md` file that gives an introduction to this repository.

Expand Down
42 changes: 0 additions & 42 deletions codecov.yml

This file was deleted.

20 changes: 0 additions & 20 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,26 +215,6 @@ Consider using shorter project file names and folders (see TestCommon example),

In all packages we should aim for documenting types using [XML documentation comments](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/xmldoc/).

### CodeCov

When a new libray is added to the repository, tracking of code coverage must be enabled. To do so, follow the steps below:

* Add a flag to `codecov.yml` with name and path corresponding to the library.

``` yml
- name: <flag-name>
paths:
- source/<new-folder-name>
```
* Add the folder of any `*.Tests` project to the ignore list in `codecov.yml`.

``` yml
- "source/<new-folder-name>/source/<test-folder-name>.Tests"
```

* In the pipeline step using the action named `Energinet-DataHub/.github/.github/actions/dotnet-solution-build-and-test` add a argument named `code_coverage_flags`, and assign it the value given to the flag in `codecov.yml`.

### Project file

When a new package is added to the repository, it is important that the project file has the necessary properties for the new package.
Expand Down

0 comments on commit c89c156

Please sign in to comment.