Skip to content

Change ClassCleanup default behavior to be "EndOfClass" #1316

@Evangelink

Description

@Evangelink

Summary

Current behavior of ClassCleanupAttribute is to be run at the end of the assembly and not at the end of the class as the name would suggest.

Note that it is possible to change this behavior (locally with a ctor/property) or globally using ClassCleanupExecutionAttribute.

Proposed Enhancement

Change default behavior to be EndOfClass. Although this is a breaking change, it will be possible for users to revert to old behavior simply by adding [assembly: ClassCleanupExecution(ClassCleanupBehavior.EndOfAssembly)].

AB#1711729

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions