You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by shazron <gi...@git.apache.org> on 2016/11/12 01:22:22 UTC

[GitHub] cordova-ios pull request #278: CB-11243 - Added failing tests

GitHub user shazron opened a pull request:

    https://github.com/apache/cordova-ios/pull/278

    CB-11243 - Added failing tests

    ### Platforms affected
    
    iOS
    
    ### What does this PR do?
    
    Added failing tests for `target-device` and `deployment-target` preferences on cordova-ios. 
    
    ### What testing has been done on this change?
    
    `npm run unit-tests`
    
    ### Checklist
    - [X] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database
    - [X] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
    - [X] Added automated test coverage as appropriate for this change.
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/shazron/cordova-ios PR_277_TEST

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-ios/pull/278.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #278
    
----
commit 7fb6480e83a4bfbcb42d979234defccfcf639f5f
Author: Shazron Abdullah <sh...@apache.org>
Date:   2016-11-12T01:21:13Z

    Added tests for cordova-ios PR 277

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


[GitHub] cordova-ios issue #278: CB-11243 - Added failing tests

Posted by shazron <gi...@git.apache.org>.
Github user shazron commented on the issue:

    https://github.com/apache/cordova-ios/pull/278
  
    Closing. Is now part of #277 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


[GitHub] cordova-ios issue #278: CB-11243 - Added failing tests

Posted by shazron <gi...@git.apache.org>.
Github user shazron commented on the issue:

    https://github.com/apache/cordova-ios/pull/278
  
    I'm going to run some independent tests on node-xcode to verify that updateBuildProperty is working properly (it has unit-tests already) or whether it is our test pbxproj that is faulty, etc. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


[GitHub] cordova-ios issue #278: CB-11243 - Added failing tests

Posted by shazron <gi...@git.apache.org>.
Github user shazron commented on the issue:

    https://github.com/apache/cordova-ios/pull/278
  
    It's not a failure in node-xcode. Therefore, the tests are incorrect somehow.
    
    Tested using:
    ```
    #!/usr/bin/env node
    
    var xcode = require('xcode'),
        fs = require('fs'),
        projectPath = 'cordova-ios/tests/spec/unit/fixtures/ios-config-xml/SampleApp.xcodeproj/project.pbxproj',
        projectPath2 = 'cordova-ios/tests/spec/unit/fixtures/ios-config-xml/SampleApp.xcodeproj/project-written.pbxproj',
        myProj = xcode.project(projectPath);
    
    // parsing is async, in a different process
    myProj.parse(function (err) {
        myProj.updateBuildProperty('IPHONEOS_DEPLOYMENT_TARGET', '8.0');
    
        fs.writeFileSync(projectPath2, myProj.writeSync());
        console.log('new project written');
    });
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


[GitHub] cordova-ios pull request #278: CB-11243 - Added failing tests

Posted by shazron <gi...@git.apache.org>.
Github user shazron closed the pull request at:

    https://github.com/apache/cordova-ios/pull/278


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org