承接 sam-burns/behat-context-file-usage 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

sam-burns/behat-context-file-usage

最新稳定版本:3.0.1

Composer 安装命令:

composer require sam-burns/behat-context-file-usage

包简介

README 文档

README

What it's for

Produces an HTML code coverage report, showing you which parts of your Behat Context files are actually being used, and what can be deleted. Useful for the maintenance of larger suites.

Uses PHPUnit's coverage report generator.

How to install it

Configure the extension in your behat.yml file, like this:

default:
    extensions:
        BehatContextFileUsage\Extension:
            context_folder: 'tests/behat/context-files/'
            report_folder:  'tests/behat/behat-code-usage-report/'

You can install it by putting this in your composer.json file:

"require": {
    "sam-burns/behat-context-file-usage": "*"
}

Now just run Behat as normal, with that config file.

Caveats

It makes your test suite run slower, so maybe just use it now and again. Take the stuff back out of the behat.yml to turn it off.

It has not escaped the author's attention that the tool could be used to provide a PHPUnit-style code coverage report of your actual production code, with regards to Behat test coverage. This would be done by changing the context_folder setting to a value like src/. This is not a recommended approach with Behat.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-19