I have just installed Visual Studio 2019 and updated everything I can find on both the PC and my Mac build host. I created a blank Xamarin.Forms iOS project and hit run on a simulator. All building and working fine.
Then I added a Xamarin.UITest Cross-Platform Test Project. After manually restoring nuget packages, this too builds fine. It also seems to run okay except for the small detail that it doesn't find any tests. I checked the default Test.cs file and it does contain one example test. If I place breakpoints in this file, none are hit.
Does anyone know why no tests are found?
I do get an informational warning while building:
[Warning] Test run will use DLL(s) built for framework .NETFramework,Version=v4.5 and platform X86. Following DLL(s) do not match framework/platform settings. UITest1.dll is built for Framework 4.6.1 and Platform AnyCPU.
In theory, reproducing this problem should be easy. Simply create a new blank Xamarin.Forms iOS project, add a Xamarin.UITest Cross-Platform Test Project and try to run or debug the tests. Shouldn't this work out of the box?
Any help would be welcome.