Cannot have a PropertyAttribute named "Category" #978
Unanswered
iamdmitrij
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is related to issue I've submitted to NUnit repo a while back.
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
After looking at source code I've found following line:
nunit3-vs-adapter/src/NUnitTestAdapter/CategoryList.cs
Line 93 in e80964e
Could someone please clarify why such constraint is needed?
Beta Was this translation helpful? Give feedback.
All reactions