在Continuous Integration环境中运行Windows Phone 8.0测试 [英] Running Windows Phone 8.0 tests in a Continuous Integration environment

查看:261
本文介绍了在Continuous Integration环境中运行Windows Phone 8.0测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个VS 2013解决方案与WP8应用程序,WP8库为我的viewmodels,一个WP8单元测试项目,测试我的库和其他标准单元测试项目。解决方案是在TFS 2012源代码控制下,构建控制器设置并正确构建我的解决方案。



但是我的WP8特定的测试不会在自动生成后运行。




  • 所有其他标准单元测试项目运行良好。


  • 创建过程模板(默认模板)设置为使用Visual Studio测试运行器

  • 构建代理程序以交互方式运行

  • 当我从命令行启动vstest.console.exe时,将.xap包作为参数,测试被很好地发现和执行



我在配置中遗漏了什么?

解决方案

Team Build目前不支持Windows Phone应用程序,

 功能| Windows Phone | Windows应用商店
Team Build支持|不支持。 |包括作为Team Build的一部分的运行单元测试的支持。

有几个不支持的解决方法可解决您的问题,在这里找到更多


I have a VS 2013 solution with a WP8 App, a WP8 Library for my viewmodels, a WP8 Unit Test project to test my library and other standard unit tests projects. The solution is under TFS 2012 source control, the build controller is setup and it correctly build my solution.

But my WP8 specific tests are not ran after automatic build. All other standard Unit Tests projects run well.

Some additional infos:

  • the ".xap" package for the test project is well generated
  • the build process Template (Default Template) is setup to use "Visual Studio Test Runner"
  • the build agent is running interactively
  • when i launch vstest.console.exe from the command line, giving the ".xap" package as argument, the test are well discovered and executed

I'am i missing something in the configuration ?

解决方案

Windows Phone apps are currently not supported on Team Build, as documented here.

Feature            | Windows Phone  | Windows Store App
Team Build support | Not supported. | Includes support for running unit tests as part of Team Build.

There are a few unsupported work-arounds to solve your issue, more an be found here.

这篇关于在Continuous Integration环境中运行Windows Phone 8.0测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆