microsoft / microsoft/codecoverage

MTP: Add command-line parameters for settings in coverage configuration file

Open
#199 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
125
Forks
17
Avg merge
1h 17m
Merged PRs (30d)
2

Description

Summary

Enable overriding the coverage settings from a configuration file on the command line, similarly to what's possible with VSTest.

Background and Motivation

To make coverage work with SonarCloud, we need different settings. Not everything listed at https://learn.microsoft.com/en-us/dotnet/core/additional-tools/dotnet-coverage#settings and https://github.com/microsoft/codecoverage/blob/main/docs/configuration.md can be overridden from the command line. Therefore, we need to maintain multiple almost-similar configuration files for coverage settings, depending on which tool consumes the coverage data and where the tests execute.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by comparing the coverage configuration options in the two linked Microsoft documents with the command-line behavior described for VSTest, then identify the settings needed for SonarCloud and differing test locations. Done means those settings can be overridden on the command line without maintaining near-duplicate configuration files.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli, testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.