Continuous Integration for Windows 8 Storage Application with Jenkins

I am trying to do continuous integration in a Windows Store app with Jenkins. Jenkins is installed on a Linux machine (due to another project such as iOS and Android). To manage a Windows project, I installed a build machine in Windows 8 64 bit. Pro (WP8 project built on this computer). I want to use this machine for my WIndows Store application.

In the beginning, I built my project with msbuild (used to create the AppPackages folder). Then I accept the certificate (.cer) with

CertUtil -addstore root <FILE.cer> 

After that, I tried using vstest.console.exe in the application (.appx). This executable should run in the online service, so I ran it with another exe that accesses the interactive session and runs vstest.console.exe (I made this executable with this article http://www.codeproject.com/Articles / 110568 / Alternative-way-for-Window-services-to-interact-wi ).

Despite this, vstest.console.exe failed with this message:

 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. 

When I run my script without using the Jenkins service (or the service I created), it works fine. Used for a Windows 8 phone, the script for testing the project works fine, but is not used when using the Windows 8 Metro application.

Has anyone been able to run unit tests from a service?

+6
source share
1 answer

We also use Jenkins for the Windows Store App CI through the launch and operation of MSBuild. Maybe this snippet will help you?

 <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> 
+1
source

Source: https://habr.com/ru/post/949833/


All Articles