redmatter/codeception-multidb
Composer 安装命令:
composer require redmatter/codeception-multidb
包简介
Switch between multiple databases in a Codeception Test
README 文档
README
This extension supports multiple dabatase backends, providing equivalant service as the Db module. Additionally it provides capability to safely switch between database connectors and multi-level transaction support.
Currently the only database supported is MySQL; but it is pretty straight forward to add support for other databases.
It is still in development, but is stable enough for anyone to give it a try.
Installation
For codeception v2.0, please use v1.0.0 using the composer command below.
composer require "redmatter/codeception-multidb: ~1.0.0"
A version that supports codeception v2.1 is under active development. You can install it by using the composer command below.
composer require "redmatter/codeception-multidb: ~2.0@dev"
NOTE: Even though there has not yet been a stable release for 2.0, it is fully compatible with 1.0 for features and its API. Please do log an issue for any bugs or possible improvemnts you identify.
Usage
Please see DemoCest and acceptance.suite.yml in examples.
In order to avoid MultiDb (or even the Db module from codeception) leaving behind modifications in the database, due to the user aborting a test run by pressing Ctrl+C, leading to breaking tests during further runs, consider using the natterbox/codeception-ctrlc module.
How to contribute?
Please feel free to fork and submit a pull request. Bug fixes and general usability comments would be much appreciated.
If you are to contribute a feature or bug-fix, please do log an issue before starting to work on the code. Then branch from the appropriate release branch, to make those changes (see below for details).
Coding standard that is followed here is PSR-2.
Why version 2.0?
Version 2.0 will be the branch for migrating MultiDb to Codeception version 2.1.
What is happening to version 1.0?
Version 1.0 is still a supported version; any major feature additions or bug fixes will be done for both versions.
Is master the same as 2.0?
It is essentially the same; but for the purpose of submitting pull requests, you should choose the appropriate branch, depending on the codeception version you have developed against.
redmatter/codeception-multidb 适用场景与选型建议
redmatter/codeception-multidb 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 80.12k 次下载、GitHub Stars 达 12, 最近一次更新时间为 2016 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 redmatter/codeception-multidb 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 redmatter/codeception-multidb 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 80.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-01-04