Skip to content

Instantly share code, notes, and snippets.

@jubianchi
Created November 7, 2012 16:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jubianchi/4032715 to your computer and use it in GitHub Desktop.
Save jubianchi/4032715 to your computer and use it in GitHub Desktop.
<?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)
;
<?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