Skip to content

MSTest v4 Breaking Changes #1285

Open
Open
@Evangelink

Description

@Evangelink

Description

The goal of this ticket is to announce the upcoming breaking changes in MSTest v4.

Planned

Follow-ups

  • Analyzers for the caller info changes of TestMethodAttribute
    • Warn when a single string argument is explicitly passed to TestMethodAttribute. This likely used to mean "display name".
    • Warn when the attribute isn't syntactically declared just above the method. Having the attribute declared just above the method helps caller info be as close as possible to the method declaration.
    • When inheriting the attribute, ensure that there is a constructor that propagates caller info.
  • Cleanup resource files (resx).
  • Warning for no longer supported ClassCleanupLifecycle in runsettings/testconfig.json
  • Add analyzer for Console.Write**, Trace.Write**, and Debug.Write** usage in tests to suggest using TestContext instead.
  • Consolidate MicrosoftTestingTargetFrameworks and SupportedNetFrameworks

Delayed

Canceled

Done in v3 already

Metadata

Metadata

Assignees

No one assigned

    Labels

    AnnouncementArea: MSTestIssues with MSTest that are not specific to more refined area (e.g. analyzers or assertions)Breaking ‼️

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions