Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Testing 如何从命令行运行Xamarin.ui测试?_Testing_Xamarin_Teamcity_Xamarin.uitest - Fatal编程技术网

Testing 如何从命令行运行Xamarin.ui测试?

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版本 构建应用程序 构

我想在我的构建服务器上运行测试(使用Xamarin.UITest制作),该服务器在OSX上运行TeamCity

我在网上搜索了如何做到这一点,但我只能找到如何将这些测试提交给Xamarin测试云。这不是我想要的,我想要在连接到构建服务器的设备(和/或模拟器)上直接运行我编写的测试。

根据(需要NUnit 2.6.3)

$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