From commits-return-51656-archive-asf-public=cust-asf.ponee.io@cordova.apache.org Wed Feb 7 16:57:58 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 611CE18065B for ; Wed, 7 Feb 2018 16:57:58 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 50E35160C62; Wed, 7 Feb 2018 15:57:58 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9AF63160C3C for ; Wed, 7 Feb 2018 16:57:57 +0100 (CET) Received: (qmail 3958 invoked by uid 500); 7 Feb 2018 15:57:56 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 3949 invoked by uid 99); 7 Feb 2018 15:57:56 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Feb 2018 15:57:56 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 22A8C822E4; Wed, 7 Feb 2018 15:57:55 +0000 (UTC) Date: Wed, 07 Feb 2018 15:57:56 +0000 To: "commits@cordova.apache.org" Subject: [cordova-windows] 02/16: fix first failing test for new default `appx` MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: janpio@apache.org In-Reply-To: <151801907495.26245.17753713910104518252@gitbox.apache.org> References: <151801907495.26245.17753713910104518252@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: cordova-windows X-Git-Refname: refs/heads/janpio-CB-13829 X-Git-Reftype: branch X-Git-Rev: 256cd6ad0d47d221d68429403e9448c8315dcf19 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20180207155755.22A8C822E4@gitbox.apache.org> This is an automated email from the ASF dual-hosted git repository. janpio pushed a commit to branch janpio-CB-13829 in repository https://gitbox.apache.org/repos/asf/cordova-windows.git commit 256cd6ad0d47d221d68429403e9448c8315dcf19 Author: Jan Piotrowski AuthorDate: Thu Jan 25 16:10:46 2018 +0100 fix first failing test for new default `appx` --- spec/e2e/endtoend.spec.js | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/spec/e2e/endtoend.spec.js b/spec/e2e/endtoend.spec.js index c3e3f96..4facaca 100644 --- a/spec/e2e/endtoend.spec.js +++ b/spec/e2e/endtoend.spec.js @@ -55,11 +55,24 @@ describe('Cordova create and build', function () { expect(fs.existsSync(projectFolder)).toBe(true); }); - it('spec.2 should build project', function () { + it('spec.2a should build default (win10) project', function () { shell.exec(buildScriptPath + '', {silent: silent}); var packages = shell.ls(appPackagesFolder); - expect(packages.filter(function (file) { return file.match(/.*Phone.*\.appx.*/); }).length).toBe(1); - expect(packages.filter(function (file) { return file.match(/.*Windows.*\.appx.*/); }).length).toBe(1); + var subDir = 'CordovaApp.Windows10_1.0.0.0_anycpu_debug_Test'; + expect(packages.filter(function (file) { return file.match(subDir); }).length).toBe(1); + verifySubDirContainsFile(subDir, 'CordovaApp.Windows10_1.0.0.0_anycpu_debug.appx'); + }); + + it('spec.2b should build 8.1 win project', function () { + shell.exec(buildScriptPath + ' --appx=8.1-win', {silent: silent}); + var packages = shell.ls(appPackagesFolder); + expect(packages.filter(function (file) { return file.match(/.*Windows.*\.appxupload/); }).length).toBe(1); + }); + + it('spec.2c should build 8.1 phone project', function () { + shell.exec(buildScriptPath + ' --appx=8.1-phone', {silent: silent}); + var packages = shell.ls(appPackagesFolder); + expect(packages.filter(function (file) { return file.match(/.*Phone.*\.appxupload*/); }).length).toBe(1); }); it('spec.3 should build project for particular CPU', function () { -- To stop receiving notification emails like this one, please contact janpio@apache.org. --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org