镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

[MTP] IncludeTestAssembly default to true #193

Open

Description

@stan-sz

In MTP (MSTest) the IncludeTestAssembly defaults to false. The ask is to make it default to true.

Code coverage of a test assembly has one practical meaning: in a PR, once presented to the reviewer that certain lines are covered, is an indication that the whole build+test+collect+visualize pipeline works.

Activity

  1. Youssef1313 commented on Oct 17, 2025

    @Youssef1313
    Member

    I personally do agree that IncludeTestAssembly is a better default.

    In past, there was an ask for coverlet coverlet-coverage/coverlet#618 which I do agree with.

  2. changed the title [-][MT] IncludeTestAssembly default to true[/-] [+][MTP] IncludeTestAssembly default to true[/+] on Oct 17, 2025
  3. Youssef1313 commented on Nov 24, 2025

    @Youssef1313
    Member

    fhnaseer We will need to update the documentation as well.

  4. fhnaseer commented on Nov 24, 2025

    @fhnaseer
    Member

    Test projects will be included by default in the coverage report from version 18.3.x onwards. Default behavior is now same as vstest.console.exe test.dll /EnableCodeCoverage.

  5. fhnaseer commented on Feb 5, 2026

    @fhnaseer
    Member

    This change has been reverted due to dotnet test failing on linux. dotnet/sdk#52029

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions