如何从命令行运行 Xamarin.UITest? [英] How can I run a Xamarin.UITest from the commandline?
本文介绍了如何从命令行运行 Xamarin.UITest?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在我的构建服务器上运行测试(使用 Xamarin.UITest 进行),该服务器在 OS X 上运行 TeamCity.
I would like to run tests (made using Xamarin.UITest) on my build server, which runs TeamCity on OS X.
我在网上搜索过如何执行此操作,但我只能找到如何将这些测试提交到 Xamarin 测试云.这不是我想要的,我想直接在连接到构建服务器的设备(和/或模拟器)上运行我编写的测试.
I have searched online on how to do this, but I am only able to find how these tests can be submitted to Xamarin Test Cloud. This is not what I want, I want to run the tests I wrote directly on devices (and/or simulators) connected to the build server.
推荐答案
根据 文档(需要 NUnit 2.6.3)
according to the docs (requires NUnit 2.6.3)
$ mono <path-to>/Nunit-2.6.3/bin/nunit-console.exe <path/to/uitest-assembly.dll>
这篇关于如何从命令行运行 Xamarin.UITest?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文