atoum/telemetry-extension 问题修复 & 功能扩展

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

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

atoum/telemetry-extension

最新稳定版本:1.0.0

Composer 安装命令:

composer require atoum/telemetry-extension

包简介

atoum telemetry reports extension

README 文档

README

atoum

Install it

Install extension using composer:

{
    "require-dev": {
        "atoum/telemetry-extension": "^1.0"
    }
}

Or simply run the following command

composer require --dev atoum/telemetry-extension

The extension will then be autoloaded by atoum, the only thing you will have to do is to configure the report.

Use it

The telemetry report allow us to collect metrics from your test suites. If you want to help us improve atoum, please send us your reports.

To enable the telemetry report, add the following code to your configuration file:

<?php

// .atoum.php

use mageekguy\atoum\telemetry;
use mageekguy\atoum\reports\telemetry;
use mageekguy\atoum\writers\std;

$script->addDefaultReport();

$telemetry = new telemetry\report();
$telemetry->addWriter(new std\out());
$runner->addReport($telemetry);

Now, each time your run your test suite, atoum will collect data and send them to the telemetry. By default, everything is sent anonymously: a random project name will be generated and we'll only collect metrics.

If you want to let us know who you are, add the following lines to your configuration file:

<?php 

$telemetry->readProjectNameFromComposerJson(__DIR__ . '/composer.json');

// Or

$telemetry->setProjectName('my/project');

The project name must be composer compliant.

With this configuration, atoum will send us everything about your project: the vendor name and the project name. If you want to keep the latter secret so we only collect the vendor name, you can add the following line:

<?php

$telemetry->sendAnonymousProjectName();

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 6
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD
  • 更新时间: 2017-10-02