grummfy/atoum-ide-helper-extension 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

grummfy/atoum-ide-helper-extension

Composer 安装命令:

composer require grummfy/atoum-ide-helper-extension

包简介

IDE helper extension for atoum, that add several usefull tools

README 文档

README

This extension add some helps in relations with your IDE by opening failed test inside your IDE.

Install it

composer

Install extension using composer:

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

Configure it

Inside your configuration file you can add the following codes:

<?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.

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:

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

Links

License

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

atoum

Origin of the extension

This extension was originally an extraction of the code from the code inside atoum with some improvements.

统计信息

  • 总下载量: 20
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2017-08-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固