2017 © Pedro Peláez
 

library junit-scribe

Utility to write JUnit XML Documents.

image

mneudert/junit-scribe

Utility to write JUnit XML Documents.

  • Saturday, April 14, 2018
  • by mneudert
  • Repository
  • 1 Watchers
  • 1 Stars
  • 128 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

JUnit Scribe

Utility to write JUnit XML Documents., (*1)

Installation

Installation can be done using composer:, (*2)

{
    "require": {
        "mneudert/junit-scribe": "dev-master"
    }
}

Or simply include in using your favorite autoloading solution., (*3)

Usage

use JUnitScribe\Document;
use JUnitScribe\Writer\StringWriter;

$document = new Document();
$document
    ->addSuite()
        ->setName('SuiteAllOk')
        ->addCase()
            ->setName('SomeAssertions')
            ->setAssertions(10)
            ->setTime(0.1236)
            ->getParent()
        ->addCase()
            ->setName('MoreAssertiongs')
            ->setAssertions(7)
            ->setTime(0.2242)
            ->getParent()
        ->getParent()
    ->addSuite()
        ->setName('SuiteNotOk')
        ->addCase()
            ->setName('HasError')
            ->setAssertions(9)
            ->setTime(1.4424)
            ->addError()
                ->setMessage('An Error Occurred.')
                ->setMessageBody('Some lengthy stacktrace or message body for the error.')
                ->getParent()
            ->getParent()
        ->addCase()
            ->setName('HasFailure')
            ->setAssertions(7)
            ->setTime(1.0023)
            ->addFailure()
                ->setMessage('A Failure Occurred.')
                ->setMessageBody('Some lengthy stacktrace or message body for the failure.');

$writer = new StringWriter();
$writer->setDocument($document);

echo $writer->formatDocument();

License

JUnitScribe is licensed under the MIT License - see the LICENSE file for details., (*4)

The Versions

14/04 2018

dev-master

9999999-dev https://github.com/mneudert/junit-scribe

Utility to write JUnit XML Documents.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Marc Neudert

29/03 2018

dev-travis

dev-travis https://github.com/mneudert/junit-scribe

Utility to write JUnit XML Documents.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Marc Neudert

21/06 2014

v0.1.0

0.1.0.0 https://github.com/mneudert/junit-scribe

Utility to write JUnit XML Documents.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Marc Neudert