VS for Mac Unable to Run or Debug Unit Tests RRS feed

  • Question

  • User114957 posted

    Since we upgraded to newer versions of VS for Mac we are having problems running and debugging unit tests.

    Are unit tests are written using NUnit 3 as .NET Core console applications.

    The VS version information is:

    === Visual Studio Community 2019 for Mac === Version 8.2.1 (build 19) Installation UUID: 095bc177-91e0-430d-9493-c9a96fe0c9ce GTK+ 2.24.23 (Raleigh theme) Xamarin.Mac (d16-2-fix-mac-updates / 86973979) Package version: 600000311 === Mono Framework MDK === Runtime: Mono (2019-02/494641b300c) (64-bit) Package version: 600000311 === NuGet === Version: === .NET Core === Runtime: /usr/local/share/dotnet/dotnet Runtime Versions: 2.2.6 2.2.2 2.1.9 2.1.2 SDK: /usr/local/share/dotnet/sdk/2.2.301/Sdks SDK Versions: 2.2.301 2.2.104 2.1.505 2.1.302 MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/6.0.0/lib/mono/msbuild/Current/bin/Sdks

    We have also seen similar issues using 8.1.5 but not on 8.0.6.

    We either see test projects fail to load, the run and debug options being greyed out or simply not in the menu at all.

    Friday, August 2, 2019 10:19 AM

All replies

  • User18049 posted

    Would you be able to create a small sample solution that reproduces this?

    Any errors in the IDE log? (Help - Open Log Directory).

    Friday, August 2, 2019 3:12 PM
  • User20789 posted

    I had the issue where the Debug Test option had disappeared entirely. Updating to latest version of Visual Studio and removing .vs files did not solve this, but a complete uninstall and re-installation of the latest version resolved the issue for me.

    Friday, October 18, 2019 1:36 PM