nunit / nunit-vs-adapter

Runs NUnit V2 tests inside the Visual Studio 2012 or later Test Explorer window.
MIT License
50 stars 43 forks source link

After updating to 2.2.0, my uitest crashes when called using nunit-console #185

Open jpc1963 opened 4 years ago

jpc1963 commented 4 years ago

I have a Xamarin UITest project which runs tests in iOS & Android simulators. The tests are run from Jenkins using the console runner ie:

mono nunit-console.exe --xml=bla.xml --out="bla.txt" SpecFlow.UITest/bin/Debug/SpecFlow.UITest.dll -run="SpecFlow.UITest.Features.InitialLoginFeature(FeatureName)"

After updating to 2.2.0 of the test adapter the above command fails with the following error: Execution Runtime: mono-4.0 Unhandled Exception: System.InvalidCastException: Specified cast is not valid.

I use the following nugets: Nunit = 2.6.4 Nunit.Runners = 2.6.4 Xamarin.UITest = 3.0.3 Specflow = 1.9.0

And I use vs2019 8.3.4