ndrake0027/drupal-junit-parser 问题修复 & 功能扩展

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

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

ndrake0027/drupal-junit-parser

Composer 安装命令:

composer create-project ndrake0027/drupal-junit-parser

包简介

JUnit parser for Drupal behat and PHPUnit output to a simple html table.

README 文档

README

Parsers for PHPUnit and Behat junit output for drupal 8 test

Installing

composer require ndrake0027/drupaljunitparser

Adding directly in composer.json

"require": {
  "ndrake0027/drupaljunitparser" : "dev-master" 
},

Example usage:

<?php
/********
 * Main *
 *******/

require __DIR__ . '/vendor/autoload.php';

use DrupalJUnit\Parser\Parser;

$dir = $argv[1];
$pattern = isset($argv[3]) ? $argv[3] : '';
$type = isset($argv[2]) ? $argv[2] : '';
$parser = new Parser();
$parser->parse($dir, $pattern, $type);

Example output

Behat output

Run results
Total tests Total failures Total errors
442 33 0

Aggregated suite results
Suite name Total tests Total failures Total errors
access 71 0 0
Scenario Failures
Failing Suite Failing Class Failing Test Failure message
Test Suite Test Class name Test name Some exception i.e.: (Behat\Mink\Exception\ElementNotFoundException)

PHPUnit output

Run results
Total tests Total failures Total errors Total time
575 24 0 9167.635773
Aggregated suite results
Type Total test Total time Total failures Total errors
functionalJavascript 20 2480.456045 0 0
Feature results
Suite Type Class name Tests Failures Errors Time Assertions
functionalJavascript Drupal\Tests\Path\FunctionalJavascript\TestClass 1 0 0 117.336066 12
Scenario Failures
Failing Suite Failing Class Failing Test Failure message
Test Suite Test Class name Test name Some exception and stacktrace i.e.: RuntimeException: Could not fetch version information from https://dummy_server:port/test/cli. Please check if Chrome is running. Please see docs/troubleshooting.md if Chrome crashed unexpected.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-04-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固