vivait/behat-mysql-dump 问题修复 & 功能扩展

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

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

vivait/behat-mysql-dump

Composer 安装命令:

composer require vivait/behat-mysql-dump

包简介

Uses mysqldump to dump the database out to a file when a scenario in behat fails.

README 文档

README

This context will dump a database to a file when a scenario in Behat fails.

The filename will be:

behat-scenario-failed-{scenarioTitle}-{dateStamp}.sql

So if you have a scenario that was run:

Scenario: A user can perform a search with advanced filtering

The filename would be along the lines of:

behat-scenario-failed-A user can perform a search with advanced filtering-20170124113226.sql

Compatibility / Requirements

  • PHP 5.6 and above, 7.0 and above

Installation

composer require vivait/behat-mysql-dump --dev

Usage

Configure Behat by adding the context to your behat.yml file

default:
    suites:
        mysuite:
            contexts:
                - Vivait\Behat\DbDump\Context\DbDumpContext:
                    - 'database_username_here'
                    - 'database_password_here'
                    - 'database_name_here'
                    - '/output/directory/here'

If using the Behat Symfony 2 Extension you can use Symfony parameters like so:

default:
    suites:
        mysuite:
            contexts:
                - Vivait\Behat\DbDump\Context\DbDumpContext:
                    - '%%database_user%%'
                    - '%%database_password%%'
                    - '%%database_name%%'
                    - '%%kernel.root_dir%%/logs'

Contributing

This started as a project internally that we used on some of our projects, if there's new features / ideas you think could be useful please feel free to suggest them, or submit a PR!

Although this project is small, openness and inclusivity are taken seriously. To that end the following code of conduct has been adopted.

Contributor Code of Conduct

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固