Skip to content

[Feature]: Suppress VSTHRD200 on methods with BaseTestAttribute/TestAttribute #6121

Description

@radmorecameron

Problem Statement

VSTHRD200 has suggestions for adding Async at the end of all async methods. This is good for more methods but isn't ideal for tests. It'd be great if it can be suppressed

Proposed Solution

Add an analyzer to suppress VSTHRD200

Alternatives Considered

MSTest and XUnit have suppressions for this:
MSTest (MIT): microsoft/testfx#2926
XUnit (apache 2.0 license): xunit/xunit.analyzers@4f2297b

I think it would be possible to copy one of their implementations with minimal changes as long as it's properly attributed

Feature Category

Other

How important is this feature to you?

Nice to have - would improve my experience

Additional Context

No response

Contribution

  • I'm willing to submit a pull request for this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions