sam-burns/behat-context-file-usage 问题修复 & 功能扩展

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

邮箱: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
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固