dotnet / dotnet/docs

Category or TestCategory

Open
#42,627 0 comments 0 reactions 0 assignees View on GitHub
:watch: Not Triaged dotnet-fundamentals/svc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
15h 21m
Merged PRs (30d)
370

Description

### Type of issue

Missing information

### Description

[Enter feedback here]
I'm using nUnit, and for historic (and probably mistaken) reasons we have many jobs that run `dotnet test --filter Category=MyCategory`, and not `dotnet test --filter TestCategory=MyCategory` (notice the use of `Category` vs `TestCategory`). Apparently it works well, but because it's not documented (nor here nor I found anywhere else any reference about it), I can't tell whether it's safe to continue using it or not. So please either document that `Category` and `TestCategory` can be used interchangeably when filtering nUnit, or describe the differences.

Thank you!

### Page URL

https://learn.microsoft.com/en-us/dotnet/core/testing/selective-unit-tests?pivots=nunit

### Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/testing/selective-unit-tests.md

### Document Version Independent Id

e4443d71-7131-ae9b-447d-9ac0762a99fc

### Article author

@smadala

### Metadata

* ID: bb70526f-d02c-2b6c-3d34-0f4cac5809f0
* Service: **dotnet-fundamentals**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.