cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-11926) File-transfer tests should be able to use local file server
Date Tue, 04 Oct 2016 07:04:20 GMT

    [ https://issues.apache.org/jira/browse/CB-11926?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15544570#comment-15544570
] 

ASF GitHub Bot commented on CB-11926:
-------------------------------------

Github user vladimir-kotikov commented on a diff in the pull request:

    https://github.com/apache/cordova-paramedic/pull/17#discussion_r81695102
  
    --- Diff: lib/PluginsManager.js ---
    @@ -41,16 +43,31 @@ PluginsManager.prototype.installTestsForExistingPlugins = function
() {
         installedPlugins.forEach(function(plugin) {
             // there is test plugin available
             if (fs.existsSync(path.join(plugin.dir, 'tests', 'plugin.xml'))) {
    -            me.installSinglePlugin(path.join(plugin.dir, 'tests'));
    +            var additionalArgs = '';
    +            if (plugin.id.indexOf('cordova-plugin-file-transfer') >= 0) {
    +                var fileServerUrl = Server.prototype.getConnectionAddress.bind({
    --- End diff --
    
    Can we just create a new `Server()` and call `getConnectionAddress` on the instance instead?
IMO this seems to be more intuitive than using `bind`


> File-transfer tests should be able to use local file server
> -----------------------------------------------------------
>
>                 Key: CB-11926
>                 URL: https://issues.apache.org/jira/browse/CB-11926
>             Project: Apache Cordova
>          Issue Type: Test
>          Components: Paramedic, Plugin File Transfer
>            Reporter: Alexander Sorokin
>            Assignee: Alexander Sorokin
>            Priority: Minor
>              Labels: triaged
>
> File-transfer tests should be able to use locally running file server instead of relying
only on Apache infrastructure.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message