报道未在詹金斯上显示

时间:2018-06-01 20:59:39

标签: python jenkins jenkins-pipeline

我有一个执行此操作的jenkins作业管道 -

  1. 执行nosetests -

    nosetests --with-xunit --xunit-file = report / nosetests.xml --with-coverage --cover-package =“testproject”--cover-html tests / unit / *

  2. 这将在report / nosetests.xml

  3. 下创建nosetests报告
  4. 它还会使用覆盖率报告创建/ cover目录。

  5. 当我查看该作业的jenkins页面时。显示测试结果,但覆盖率报告。

  6. enter image description here

    此外,这是我的管道 -

    void printTree(Node* root)
    {
            if (root == NULL)
            {
                    return;
            }
    
            cout << root->val << endl;
            printSubtree(root, "");
            cout << endl;
    }
    
    void printSubtree(Node* root, const string& prefix)
    {
            if (root == NULL)
            {
                    return;
            }
    
            bool hasLeft = (root->left != NULL);
            bool hasRight = (root->right != NULL);
    
            if (!hasLeft && !hasRight)
            {
                    return;
            }
    
            cout << prefix;
            cout << ((hasLeft  && hasRight) ? "├── " : "");
            cout << ((!hasLeft && hasRight) ? "└── " : "");
    
            if (hasRight)
            {
                    bool printStrand = (hasLeft && hasRight && (root->right->right != NULL || root->right->left != NULL));
                    string newPrefix = prefix + (printStrand ? "│   " : "    ");
                    cout << root->right->val << endl;
                    printSubtree(root->right, newPrefix);
            }
    
            if (hasLeft)
            {
                    cout << (hasRight ? prefix : "") << "└── " << root->left->val << endl;
                    printSubtree(root->left, prefix + "    ");
            }
    }
    

0 个答案:

没有答案
相关问题