Created
November 7, 2012 16:43
-
-
Save jubianchi/4032715 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use | |
mageekguy\atoum, | |
mageekguy\atoum\report\fields\runner\failures\execute\macos | |
; | |
$script->addTestAllDirectory(__DIR__ . '/tests'); | |
$cloverWriter = new atoum\writers\file('target/logs/atoum.coverage.xml'); | |
$cloverReport = new atoum\reports\asynchronous\clover(); | |
$cloverReport->addWriter($cloverWriter); | |
$xunitWriter = new atoum\writers\file('target/logs/atoum.xml'); | |
$xunitReport = new atoum\reports\asynchronous\xunit(); | |
$xunitReport->addWriter($xunitWriter); | |
$stdOutWriter = new atoum\writers\std\out(); | |
$cliReport = new atoum\reports\realtime\cli(); | |
$cliReport->addWriter($stdOutWriter); | |
$cliReport | |
//To use the PhpStorm failure field, you only need to instanciate it (if PhpStorm.app is installed in the /Applications directory) | |
->addField(new macos\phpstorm()) | |
//Otherwise, if it's not in /Applications, you'll have to set the path to the launcher | |
//->addField(new macos\phpstorm(/path/to/PhpStorm.app/Contents/MacOS/webide)) | |
//To use other, more standards, fields you'll only have to instanciate them | |
//->addField(new macos\macvim()) | |
; | |
$runner | |
->addReport($cliReport) | |
->addReport($xunitReport) | |
->addReport($cloverReport) | |
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use | |
mageekguy\atoum, | |
mageekguy\atoum\report\fields\runner\failures\execute\unix | |
; | |
$script->addTestAllDirectory(__DIR__ . '/tests'); | |
$cloverWriter = new atoum\writers\file('target/logs/atoum.coverage.xml'); | |
$cloverReport = new atoum\reports\asynchronous\clover(); | |
$cloverReport->addWriter($cloverWriter); | |
$xunitWriter = new atoum\writers\file('target/logs/atoum.xml'); | |
$xunitReport = new atoum\reports\asynchronous\xunit(); | |
$xunitReport->addWriter($xunitWriter); | |
$stdOutWriter = new atoum\writers\std\out(); | |
$cliReport = new atoum\reports\realtime\cli(); | |
$cliReport->addWriter($stdOutWriter); | |
$cliReport | |
//To use the PhpStorm failure field, you will need to set the path to the launcher | |
->addField(new unix\phpstorm('/path/to/PhpStorm/bin/phpstorm.sh')) | |
//To use other, more standards, fields you'll only have to instanciate them | |
//->addField(new unix\gedit()) | |
//->addField(new unix\gvim()) | |
; | |
$runner | |
->addReport($cliReport) | |
->addReport($xunitReport) | |
->addReport($cloverReport) | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment