I have tests made with MsTest v2 in which I use [ClassCleanup]
to log some summary information. The thing is, contrary to [TestCleanup]
that ends up in each individual test summary, it doesn’t seem to get recorded anywhere in the UI.
Where can I see the output of _globalTestContext.WriteLine(...);
(where _globalTestContext
comes from public static void ClassInitialize(TestContext context)
) using Visual Studio 2022?
Note: The question was asked earlier and an answer was provided for previous versions of Visual Studio but now that we have the Test Explorer Window instead of the Test Results Window, it doesn’t seem to work anymore.
How to write output in the [ClassInitialize()] of a Unit Test class?