You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@engyebrahim This issue is somehow related to the various fixes you are doing on init and cleanup methods. Could you please investigate it after you are done with your refactoring?
Hi @3s-ap! I tried to reproduce the issue using V2.2.10 using TestContext and Console.Write but the messages' order was different than the ones you had.
using TestContext the cleanup logs don't appear.
using Console.Write the cleanup appear at the beginning.
So please can you upload the whole repo to use the log.message() you used in your investigation? Or did you try to use one of the ways I used?
Description
When the ClassCleanup attribute is declared on a base type with ClassCleanupBehavior.EndOfClass, it still triggered at end of assembly.
Steps to reproduce
Run this code:
Expected behavior
ClassCleanup is triggered at the end of class, according to 'ClassCleanupBehavior.EndOfClass'
Actual behavior
Log output:
Environment
VS 2019
MSTest.TestAdapter: 2.2.10
MSTest.TestFramework: 2.2.10
AB#1677601
The text was updated successfully, but these errors were encountered: