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.

Assessment

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

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.

Description

enhancement

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.

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

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.

More from microsoft/codecoverage

All issues in microsoft/codecoverage

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.