tonicforhealth/testrail-report-aggregator 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tonicforhealth/testrail-report-aggregator

Composer 安装命令:

composer require tonicforhealth/testrail-report-aggregator

包简介

Tool to aggregation report from JUnit like format to TestRail run report.

README 文档

README

License Build Status Scrutinizer Code Quality Code Coverage SensioLabsInsight

Tool to aggregation report from JUnit like format to TestRail run report.

Installation using Composer

$ composer require tonicforhealth/testrail-report-aggregator

Junit report example

<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
    <testsuite name="IDENT.IDENT2.1.9.4 description" tests="1" failures="0"/>
    <testsuite name="IDENT.IDENT2.1.9.5 description" tests="1" failures="0"/>
    <testsuite name="IDENT.IDENT2.1.9.6 description" tests="1" failures="1">
        <failure
                message="Some error text of the Test IDENT.IDENT2.1.9.6"/>
    </testsuite>
</testsuites>

Case sync use ident which find in the name by using regex ^[\w._-]+.[\w]+.[\w]+

Usage

<?php

        $testRunId = 1885;
        $apiUrl = 'https://test.testrail.com/index.php?/api/v2/';
        $user = 'dev@test.com';
        $passwordOrToken = 'chengeMePls'
        $junitXml = 'fixture/simple_junit_report.xml';

        $authentication = new BasicAuth(
            $user,
            $passwordOrToken
        );
        $plugins[] = new AuthenticationPlugin($authentication);

        $pluginClient = new PluginClient(HttpClientDiscovery::find(), $plugins);

        $httpMethodsClient = new HttpMethodsClient($pluginClient, MessageFactoryDiscovery::find());

        $junitReport = new JunitReport($junitXml);

        $testRailReportA = new JUnitToTestRailRunTransformer($testRunId);

        $testRailSync = new TestRailSync($apiUrl, $httpMethodsClient);

        $testRailReport = $testRailReportA->transform($junitReport);

        $testRailSync->sync($testRailReport);

        $testRailSync->pushResults($testRailReport);

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-04-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固