Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11424

AppVeyor test failures (path separator) on cordova-ios platform

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-ios
    • None
    • iOS, AppVeyor

    Description

      Failures: 
       
        1) prepare updateWww method should update project-level www and with platform agnostic www and merges 
         Message: 
           Expected spy mergeAndUpdateDir to have been called with [ [ 'www', 'platforms/ios/platform_www', 'merges/ios' ], 'platforms/ios/www', { rootDir : 'C:\Users\appveyor\AppData\Local\Temp\1\prepare' }, Function ] but actual calls were [ [ 'www', 'platforms\ios\platform_www', 'merges\ios' ], 'platforms\ios\www', { rootDir : 'C:\Users\appveyor\AppData\Local\Temp\1\prepare' }, Function ] 
         Stacktrace: 
           Error: Expected spy mergeAndUpdateDir to have been called with [ [ 'www', 'platforms/ios/platform_www', 'merges/ios' ], 'platforms/ios/www', { rootDir : 'C:\Users\appveyor\AppData\Local\Temp\1\prepare' }, Function ] but actual calls were [ [ 'www', 'platforms\ios\platform_www', 'merges\ios' ], 'platforms\ios\www', { rootDir : 'C:\Users\appveyor\AppData\Local\Temp\1\prepare' }, Function ]
        at .<anonymous> (C:\projects\cordova-ios\tests\spec\unit\prepare.spec.js:424:51)
        at tryOnTimeout (timers.js:224:11)
        at Timer.listOnTimeout (timers.js:198:5)
       
       
        2) prepare updateWww method should skip merges if merges directory does not exist 
         Message: 
           Expected spy mergeAndUpdateDir to have been called with [ [ 'www', 'platforms/ios/platform_www' ], 'platforms/ios/www', { rootDir : 'C:\Users\appveyor\AppData\Local\Temp\1\prepare' }, Function ] but actual calls were [ [ 'www', 'platforms\ios\platform_www' ], 'platforms\ios\www', { rootDir : 'C:\Users\appveyor\AppData\Local\Temp\1\prepare' }, Function ] 
         Stacktrace: 
           Error: Expected spy mergeAndUpdateDir to have been called with [ [ 'www', 'platforms/ios/platform_www' ], 'platforms/ios/www', { rootDir : 'C:\Users\appveyor\AppData\Local\Temp\1\prepare' }, Function ] but actual calls were [ [ 'www', 'platforms\ios\platform_www' ], 'platforms\ios\www', { rootDir : 'C:\Users\appveyor\AppData\Local\Temp\1\prepare' }, Function ]
        at .<anonymous> (C:\projects\cordova-ios\tests\spec\unit\prepare.spec.js:434:51)
        at tryOnTimeout (timers.js:224:11)
        at Timer.listOnTimeout (timers.js:198:5)
      

      Expected has paths with forward slashes (non-Windows) but actual has paths with backslashes (Windows).

      Attachments

        Activity

          People

            shazron Shazron Abdullah
            shazron Shazron Abdullah
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: