Skip to content

Add a xUnit trait(s) to indicate platform specific unit-tests #2065

@alpaix

Description

@alpaix

Introduce a platform xUnit trait to indicate platform specific tests like this

[Fact]
[Trait("Platform", "WindowsOnly")]
public void PushCommand_PushToFileSystemSourceUncStyle()
{
...
}

Having the trait one can invoke xunit runner with -ExcludeTraits "Platform=WindowsOnly"

Opened as a follow up on:
#1053
NuGet/NuGet.Client#253

Metadata

Metadata

Assignees

Labels

Type:DCRDesign Change Request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions