Visual studio Windows 8应用商店应用程序与Jenkins的持续集成

Visual studio Windows 8应用商店应用程序与Jenkins的持续集成,visual-studio,unit-testing,service,jenkins,windows-store-apps,Visual Studio,Unit Testing,Service,Jenkins,Windows Store Apps,我正在尝试与Jenkins在Windows应用商店应用程序上进行持续集成。Jenkins安装在Linux机器上(由于其他项目,如iOS和Android)。为了管理Windows项目,我在Windows 8 64位Pro上安装了一台生成计算机(WP8项目是在此计算机上生成的)。我想将此计算机用于我的WIndows应用商店应用程序 开始时,我使用msbuild(用于生成AppPackages文件夹)构建了我的项目。然后我接受证书(.cer)并 当我运行我的脚本时,没有使用Jenkins服务(或我构建

我正在尝试与Jenkins在Windows应用商店应用程序上进行持续集成。Jenkins安装在Linux机器上(由于其他项目,如iOS和Android)。为了管理Windows项目,我在Windows 8 64位Pro上安装了一台生成计算机(WP8项目是在此计算机上生成的)。我想将此计算机用于我的WIndows应用商店应用程序

开始时,我使用msbuild(用于生成AppPackages文件夹)构建了我的项目。然后我接受证书(.cer)并

当我运行我的脚本时,没有使用Jenkins服务(或我构建的服务),它工作得非常好。用于Windows8手机的测试脚本可以完美地运行,但用于Windows8Metro应用程序时却无法运行


有人能够从服务运行单元测试吗?

我们还通过启动和MSBuild作业来使用Jenkins for Windows应用商店应用程序CI。也许这段话对你有帮助

<Target Name="UnitTest" DependsOnTargets="PreTest;Compile" Condition="'$(SkipTests)'=='' and '$(Platform)'=='x86'" >
    <ItemGroup>
        <TestAppx Include="$(SolutionDir)\**\*x86*\**\*Tests*.appx" />
        </ItemGroup>

    <Message Importance="high" Text="Running tests for %(TestAppx.Identity)" />
            <Exec Command='"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" %(TestAppx.Identity) /InIsolation /platform:x86 /Logger:trx /UseVsixExtensions:true'
                  WorkingDirectory="$(SolutionDir)"/>
</Target>


A)您是否以管理员身份运行命令行?B) 您是否已安装开发人员的许可证并处于最新状态?C) 确保使用
/InIsolation
开关运行
vstest.console.exe
,如大纲所示。A)我以管理员身份运行命令行。B) 我已在生成计算机上安装了开发人员许可证,并且该许可证是最新的。C)我使用/InIsolation运行vstest.console.exe。您是否设法从Windows应用商店项目上的服务启动了vstest.console.exe?我还没有机会尝试,没有。我的一个朋友使用TFS进行持续集成,但我通常都是手动进行单元测试。您用32位vstest.console.exe和64位都试过了吗?是的,我试过32位和64位。我知道TFS可以做到这一点,但TFS不是免费的……服务器要求是什么?它必须是Win 8服务器还是Windows 2012(R2)?也许你也知道如果我们能在Windows 2012服务器上赢得Phone 8。。。
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: Failed to launch test executor for the Windows Store app with error code 0.
<Target Name="UnitTest" DependsOnTargets="PreTest;Compile" Condition="'$(SkipTests)'=='' and '$(Platform)'=='x86'" >
    <ItemGroup>
        <TestAppx Include="$(SolutionDir)\**\*x86*\**\*Tests*.appx" />
        </ItemGroup>

    <Message Importance="high" Text="Running tests for %(TestAppx.Identity)" />
            <Exec Command='"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" %(TestAppx.Identity) /InIsolation /platform:x86 /Logger:trx /UseVsixExtensions:true'
                  WorkingDirectory="$(SolutionDir)"/>
</Target>