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-8870) Medic should display test failures in build status
Date Wed, 29 Apr 2015 19:19:06 GMT

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

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

Github user muratsu commented on a diff in the pull request:

    https://github.com/apache/cordova-medic/pull/47#discussion_r29370417
  
    --- Diff: bin/lib/testcheck.js ---
    @@ -0,0 +1,77 @@
    +var http = require('http'),
    +    url = require('url'),
    +    q = require('q');
    +
    +module.exports = function (sha, dbHost) {
    +
    +    function getDocumentIdBySha() {
    +        var options = {
    +            host : url.parse(dbHost).hostname,
    +            port : url.parse(dbHost).port,
    +            path : '/mobilespec_results/_all_docs?start_key="' + sha + '"&limit=1'
    +        },
    +            resultsDoc = '',
    +            d = q.defer();
    +
    +        http.get(options, function (result) {
    +            result.on("data", function (chunk) {
    +                resultsDoc += chunk.toString();
    +            });
    +            result.on('end', function () {
    +                d.resolve(JSON.parse(resultsDoc).rows[0].id);
    +            });
    +        }).on('error', function (e) {
    +            console.log("Got error: " + e.message);
    +            d.reject(e);
    +        });
    +
    +        return d.promise;
    +    };
    +
    +    function getTestResult(resultId) {
    +        var options = {
    +            host : url.parse(dbHost).hostname,
    +            port : url.parse(dbHost).port,
    +            path : '/mobilespec_results/' + resultId
    +        };
    +        var d = q.defer();
    +        var resultsJSON = "";
    +        var failure;
    --- End diff --
    
    never used?


> Medic should display test failures in build status
> --------------------------------------------------
>
>                 Key: CB-8870
>                 URL: https://issues.apache.org/jira/browse/CB-8870
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Medic
>    Affects Versions: Master
>            Reporter: Dmitry Blotsky
>              Labels: improvement, medic
>   Original Estimate: 72h
>  Remaining Estimate: 72h
>




--
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