You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using [Property("Category", "Test")] on a test, does not work as expected with property name "Category".
Property name with value "Category" is omitted from Visual Studio Test Explorer:
[Test]
[Property("Category", "Invisible")]
public void Test()
{
Assert.Pass();
}
However, if property key is other than Category, tests [Property("FakeCategory", "Visible")] - it works perfectly fine.
[Test]
[Property("FakeCategory", "Visible")]
public void Test()
{
Assert.Pass();
}
This is quite relevant if there are multiple test projects in solution using different frameworks - MSTest, xUnit, NUnit. In all mentioned frameworks except NUnit tagging with name and value where property name=Category works fine.
NUnit version: 3.13.2
IDE: Visual Studio 2022 17.0.1
The text was updated successfully, but these errors were encountered:
So I guess the NUnit adapter has special handling of this Categories (a small test confirm this) - I guess it was made as part of #446. I'm unsure if one can configure this behaviour in the adapter, but as far as I can tell it is not possible to change. @OsirisTerje can you prodvide some more information - and should this be moved to the adapter project?
Using
[Property("Category", "Test")]
on a test, does not work as expected with property name "Category".Property name with value "Category" is omitted from Visual Studio Test Explorer:
However, if property key is other than Category, tests
[Property("FakeCategory", "Visible")]
- it works perfectly fine.This is quite relevant if there are multiple test projects in solution using different frameworks -
MSTest
,xUnit
,NUnit
. In all mentioned frameworks exceptNUnit
tagging with name and value where property name=Category works fine.NUnit version: 3.13.2
IDE: Visual Studio 2022 17.0.1
The text was updated successfully, but these errors were encountered: