Testing 如何从命令行运行Xamarin.ui测试?
我想在我的构建服务器上运行测试(使用Xamarin.UITest制作),该服务器在OSX上运行TeamCity 我在网上搜索了如何做到这一点,但我只能找到如何将这些测试提交给Xamarin测试云。这不是我想要的,我想要在连接到构建服务器的设备(和/或模拟器)上直接运行我编写的测试。根据(需要NUnit 2.6.3)Testing 如何从命令行运行Xamarin.ui测试?,testing,xamarin,teamcity,xamarin.uitest,Testing,Xamarin,Teamcity,Xamarin.uitest,我想在我的构建服务器上运行测试(使用Xamarin.UITest制作),该服务器在OSX上运行TeamCity 我在网上搜索了如何做到这一点,但我只能找到如何将这些测试提交给Xamarin测试云。这不是我想要的,我想要在连接到构建服务器的设备(和/或模拟器)上直接运行我编写的测试。根据(需要NUnit 2.6.3) $mono/Nunit-2.6.3/bin/Nunit-console.exe 以下是我在OS-X上的操作: 本地安装正确的nunit console.exe版本 构建应用程序 构
$mono/Nunit-2.6.3/bin/Nunit-console.exe
以下是我在OS-X上的操作:
- 本地安装正确的
版本nunit console.exe
- 构建应用程序
- 构建uitests
- 运行测试
nuget install NUnit.Runners -Version 2.6.4
xbuild iOS/UITestFromCmdLine.iOS.csproj /target:Build
xbuild UITests/UITestFromCmdLine.UITests.csproj
mono ./NUnit.Runners.2.6.4/tools/nunit-console.exe UITests/bin/Debug/UITestFromCmdLine.UITests.dll
nuget install NUnit.Runners -Version 2.6.4
xbuild iOS/UITestFromCmdLine.iOS.csproj /target:Build
xbuild UITests/UITestFromCmdLine.UITests.csproj
mono ./NUnit.Runners.2.6.4/tools/nunit-console.exe UITests/bin/Debug/UITestFromCmdLine.UITests.dll