2017 © Pedro Peláez
 

library atoum-ide-helper-extension

IDE helper extension for atoum, that add several usefull tools

image

grummfy/atoum-ide-helper-extension

IDE helper extension for atoum, that add several usefull tools

  • Sunday, August 13, 2017
  • by Grummfy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

grummfy/atoum-ide-helper-extension Build Status

This extension add some helps in relations with your IDE by opening failed test inside your IDE., (*1)

Install it

composer

Install extension using composer:, (*2)

composer require --dev grummfy/atoum-ide-helper-extension

Configure it

Inside your configuration file you can add the following codes:, (*3)

<?php
use
    mageekguy\atoum,
    atoum\ideHelper\report\fields\runner\failures\execute
;

// defined a cli report
$stdOutWriter = new atoum\writers\std\out();
$cliReport = new atoum\reports\realtime\cli();
$cliReport->addWriter($stdOutWriter);

// then add the link to your ide, here is PHPStorm
$cliReport->addField(new execute\phpstorm());
$runner->addReport($cliReport);

The best would be to configure it on your machine and not on on your repository and use the inheritance of atoum's configuration to use it., (*4)

PHPStorm

<?php
// ...
// under windows
$cliReport->addField(new execute\phpstorm('c:\\Program Files\\...\\phpstorm.exe'));
// under macOs, if different than the default path
$cliReport->addField(new execute\phpstorm('/Applications/PhpStorm.app/pstorm'));
// under other unix
$cliReport->addField(new execute\phpstorm());
// under other unix if the command line launcher is not setted (PHPStorm>Tools>Create Command line...)
$cliReport->addField(new execute\phpstorm('/opt/phpstorm/bin/pstorm'));
// under any os where PHPSTORM_PATH is defined as env var and contains a path to PHPStorm
$cliReport->addField(new execute\phpstorm());
// ...

gVIM

<?php
// ...
$cliReport->addField(new execute\unix\gvim());
// ...

gedit

<?php
// ...
$cliReport->addField(new execute\unix\gedit());
// ...

geany

<?php
// ...
$cliReport->addField(new execute\unix\geany());
// ...

macVIM

<?php
// ...
$cliReport->addField(new execute\macos\macvim());
// ...

Generic

For any other case, just use what's provided by atoum:, (*5)

<?php
// ...
use mageekguy\atoum\report\fields\runner\failures\execute;
// ...
// here with gvim
$cliReport->addField(new execute('gvim +%2$d %1$s > /dev/null &'));
// ...

License

atoum-ide-helper-extension is released under the BSD-3-Clause License. See the bundled LICENSE file for details., (*6)

atoum, (*7)

Origin of the extension

This extension was originally an extraction of the code from the code inside atoum with some improvements., (*8)

The Versions

13/08 2017

dev-master

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

IDE helper extension for atoum, that add several usefull tools

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Avatar Grummfy

tdd test json unit testing atoum atoum-extension

12/08 2017

1.0.0

1.0.0.0 http://www.atoum.org

IDE helper extension for atoum, that add several usefull tools

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Avatar Grummfy

tdd test json unit testing atoum atoum-extension