Visual Studio 2022 not running unit tests
I have projects with unit tests working properly using Visual Studio 2019. Installed Visual Studio 2022 on another machine to try it out, running Nunit unit tests does nothing. It does not say it failed nor indicate something is wrong.It was actuallying failing but I am not looking at the correct output log. As you observe from the above screen capture, the default log shows Build output. What you wanted is the log for Tests. See below for the correct view.
The Tests output shows the issue front and center. The tests were failing because it was configured to use .Net Core 3.1.x but it was not avaiable on the machine. One way to fix it is to use Visual Studio Installer and select .NET Core 3.1 Runtime (LTS).
Comments