2013-12-17 188 views
1

我們整合與詹金斯我們的Windows Phone應用到自動構建,單元測試執行等WP單元測試執行

當我們嘗試使用工具vstest.console.exe執行單元測試我們得到了以下錯誤,

Microsoft (R) Test Execution Command Line Tool Version 11.0.60315.1 Copyright (c) Microsoft Corporation. All rights reserved.

Starting test execution, please wait... Error: Could not start test run for unit tests for Windows Phone app: Unit tests for Windows Store apps cannot be run from a service or non interactive process. Please run unit tests from an interactive process..

如果我們認爲有關會話0隔離這實際上不是一個意外的錯誤,但我認爲應該有向右自動化單元測試執行的方法嗎?什麼是工作?

感謝

+0

錯誤消息的解釋說明有一些困惑:它說,「爲Windows Store應用程序的單元測試無法運行...「所以也許命令行缺少一些參數來指定Windows Phone應用程序?你可以發佈你正在使用的示例命令行嗎? – BobHy

+0

我認爲它只是一個錯誤消息/錯字錯誤。我通過更改jenkins的通信類型成功地實現了自動化單元測試。我們現在使用JLNP,而不是將從節點作爲Windows服務運行。 – mehmet6parmak

回答

4

我們改變了從節點啓動方法。而不是使用「讓詹金斯控制這個奴隸作爲Windows服務」選項,我們使用JLNP選項