Skip to content

Commit

Permalink
Conditionally skip the _one_ broken test for VS 2017 (apache#330)
Browse files Browse the repository at this point in the history
...instead of allowing whole suite to fail.
  • Loading branch information
raphinesse authored and Christopher J. Brody committed Dec 23, 2019
1 parent 0e7587a commit e3637e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
4 changes: 0 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ environment:
- nodejs_version: "6"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015

matrix:
allow_failures:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017

install:
- ps: Install-Product node $env:nodejs_version
- npm install
Expand Down
18 changes: 10 additions & 8 deletions spec/e2e/endtoend.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,16 @@ describe('Cordova create and build', function () {

// --release --bundle

// here be 6a
it('spec.6a should generate appxupload and appxbundle for Windows 10 project bundle release build', function () {
// FIXME Fails for VS 2017 on AppVeyor
if (process.env.APPVEYOR_BUILD_WORKER_IMAGE === 'Visual Studio 2017') {
pending('This test is broken for VS 2017 on AppVeyor');
}

shell.exec(buildScriptPath + ' --release --bundle --archs=\"x64 x86 arm\"', { silent: silent });
_expectExist(/.*bundle\.appxupload$/, 3);
_expectSubdirAndFileExist('CordovaApp.Windows10_1.0.0.0_Test', 'CordovaApp.Windows10_1.0.0.0_x64_x86_arm.appxbundle');
});

it('spec.6b should generate appxupload and appxbundle for Windows Phone 8.1 project bundle release build', function () {
shell.exec(buildScriptPath + ' --release --appx=8.1-phone --bundle --archs=\"x64 x86 arm\"', { silent: silent });
Expand All @@ -240,11 +249,4 @@ describe('Cordova create and build', function () {
_expectSubdirAndFileExist('CordovaApp.Phone_1.0.0.0_arm_Test', 'CordovaApp.Phone_1.0.0.0_arm.appx');
_expectSubdirAndFileExist('CordovaApp.Phone_1.0.0.0_x86_Test', 'CordovaApp.Phone_1.0.0.0_x86.appx');
});

// this will be move up again when it is fixed for VS 2017 on AppVeyor
it('spec.6a should generate appxupload and appxbundle for Windows 10 project bundle release build', function () {
shell.exec(buildScriptPath + ' --release --bundle --archs=\"x64 x86 arm\"', { silent: silent });
_expectExist(/.*bundle\.appxupload$/, 3);
_expectSubdirAndFileExist('CordovaApp.Windows10_1.0.0.0_Test', 'CordovaApp.Windows10_1.0.0.0_x64_x86_arm.appxbundle');
});
});

0 comments on commit e3637e6

Please # to comment.