Announcing CodeLens for C++ Unit Testing

App Center Team

C++ developers in Visual Studio can now get their first taste of CodeLens! Specifically, Visual Studio 2017 15.7 Preview 3 Professional and Enterprise editions offer CodeLens for Unit Testing.

There are a few ways to initialize CodeLens: •Edit and Build your test project/solution •Rebuild your project/solution •Run test(s) from the Test Explorer Window

After performing any of the above actions, CodeLens will appear above each of your unit tests. CodeLens allows you to Run, Debug, and view the Test Status of your unit tests directly in the source file. The test status indicators are the same as the ones in the Test Explorer (Warning , Success , Failure ).