2017 © Pedro Peláez
 

project drupal-junit-parser

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

image

ndrake0027/drupal-junit-parser

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

  • Friday, July 20, 2018
  • by ndrake0027
  • Repository
  • 1 Watchers
  • 0 Stars
  • 756 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 121 % Grown

The README.md

drupaljunitparser

Parsers for PHPUnit and Behat junit output for drupal 8 test, (*1)

Installing

composer require ndrake0027/drupaljunitparser

Adding directly in composer.json, (*2)

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

Example usage:, (*3)

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


, (*4)

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

, (*5)

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.

, (*6)

The Versions