grummfy/atoum-ide-helper-extension
atoum的IDE辅助扩展,增加了多个实用工具
1.0.0
2017-08-12 20:58 UTC
Requires
- php: >=5.6
- atoum/atoum: ^3.0
Requires (Dev)
- atoum/stubs: 2.*
This package is auto-updated.
Last update: 2024-08-28 18:50:06 UTC
README
此扩展通过在IDE中打开失败的测试添加了一些帮助。
安装它
composer
使用composer安装扩展
composer require --dev grummfy/atoum-ide-helper-extension
配置它
在您的配置文件中,您可以添加以下代码
<?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);
最好是在您的机器上配置,而不是在您的仓库中,并使用atoum的配置继承来使用它。
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()); // ...
通用
对于其他任何情况,只需使用atoum提供的即可。
<?php // ... use mageekguy\atoum\report\fields\runner\failures\execute; // ... // here with gvim $cliReport->addField(new execute('gvim +%2$d %1$s > /dev/null &')); // ...
链接
许可证
atoum-ide-helper-extension在BSD-3-Clause许可证下发布。有关详细信息,请参阅捆绑的LICENSE文件。
扩展的来源
此扩展最初是从atoum内部的代码中提取出来的一些改进。