2017 © Pedro Peláez
 

library reports-extension

atoum Reports extension

image

atoum/reports-extension

atoum Reports extension

  • Thursday, February 8, 2018
  • by agallou
  • Repository
  • 7 Watchers
  • 3 Stars
  • 52,099 Installations
  • JavaScript
  • 10 Dependents
  • 0 Suggesters
  • 8 Forks
  • 2 Open issues
  • 16 Versions
  • 19 % Grown

The README.md

atoum/reports-extension Build Status StyleCI

Install it

Install extension using composer:, (*1)

composer require --dev atoum/reports-extension

Enable the extension using atoum configuration file:, (*2)

<?php

// .atoum.php

require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';

use atoum\atoum\reports;

$extension = new reports\extension($script);

$extension->addToRunner($runner);

Use it

HTML coverage report

Check out the demo report generated with atoum's test suite: http://atoum.github.io/reports-extension/, (*3)

Add the following code to your configuration file:, (*4)

<?php

// .atoum.php

use atoum\atoum\reports;
use atoum\atoum\reports\coverage;
use atoum\atoum\writers\std;

$script->addDefaultReport();

$coverage = new coverage\html();
$coverage->addWriter(new std\out());
$coverage->setOutPutDirectory(__DIR__ . '/coverage');
$runner->addReport($coverage);

Branches and path coverage

If you want to generate branches and paths reports, you will have to install xDebug 2.3.0 or later:, (*5)

wget https://github.com/FriendsOfPHP/pickle/releases/download/v0.4.0/pickle.phar
php pickle.phar install xdebug

php -v

Once done, just use the -ebpc command line flag or add the following line of code to your configuration file:, (*6)

<?php

// .atoum.php

$script->enableBranchAndPathCoverage();

Sonar coverage report

To add generic code coverage for sonar., (*7)

$xunit = new \atoum\atoum\reports\sonar\xunit();
$writer = new \atoum\atoum\writers\file('./sonar-xunit.xml');
$xunit->addWriter($writer);
$runner->addReport($xunit);

$clover = new \atoum\atoum\reports\sonar\clover();
$writer = new \atoum\atoum\writers\file('./sonar-clover.xml');
$clover->addWriter($writer);
$runner->addReport($clover);

and add report generate to sonar.genericcoverage properties, (*8)

License

reports-extension is released under the BSD-3-Clause License. See the bundled LICENSE file for details., (*9)

atoum, (*10)

The Versions

08/02 2018

dev-master

9999999-dev http://www.atoum.org

atoum Reports extension

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test unit testing reports atoum atoum-extension

08/02 2018

3.0.1

3.0.1.0 http://www.atoum.org

atoum Reports extension

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test unit testing reports atoum atoum-extension

03/10 2017

3.0.0

3.0.0.0 http://www.atoum.org

atoum Reports extension

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test unit testing reports atoum atoum-extension

03/10 2017

dev-remove-telemetry

dev-remove-telemetry http://www.atoum.org

atoum Reports extension

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test unit testing reports atoum atoum-extension

02/10 2017

2.5.0

2.5.0.0 http://www.atoum.org

atoum Reports extension

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test unit testing reports atoum atoum-extension

02/10 2017

dev-fix-ci

dev-fix-ci http://www.atoum.org

atoum Reports extension

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test unit testing reports atoum atoum-extension

11/02 2017

2.4.0

2.4.0.0 http://www.atoum.org

atoum Reports extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar jubianchi

tdd test unit testing reports atoum atoum-extension

22/06 2016

2.3.2

2.3.2.0 http://www.atoum.org

atoum Reports extension

  Sources   Download

BSD

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test unit testing reports atoum

24/05 2016

2.3.1

2.3.1.0 http://www.atoum.org

atoum Reports extension

  Sources   Download

BSD

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test unit testing reports atoum

24/05 2016

2.3.0

2.3.0.0 http://www.atoum.org

atoum Reports extension

  Sources   Download

BSD

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test unit testing reports atoum

13/05 2016

2.2.0

2.2.0.0 http://www.atoum.org

atoum Reports extension

  Sources   Download

BSD

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test unit testing reports atoum

06/05 2016

2.1.0

2.1.0.0 http://www.atoum.org

atoum Reports extension

  Sources   Download

BSD

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test unit testing reports atoum

30/04 2016

2.0.1

2.0.1.0 http://www.atoum.org

atoum Reports extension

  Sources   Download

BSD

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test unit testing reports atoum

30/04 2016

2.0.0

2.0.0.0 http://www.atoum.org

atoum Reports extension

  Sources   Download

BSD

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test unit testing reports atoum

16/09 2015

1.0.1

1.0.1.0 http://www.atoum.org

atoum Reports extension

  Sources   Download

BSD

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test unit testing reports atoum

13/05 2015

1.0.0

1.0.0.0 http://www.atoum.org

atoum Reports extension

  Sources   Download

BSD

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test unit testing reports atoum