fetzi/phpspec-watcher 问题修复 & 功能扩展

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

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

fetzi/phpspec-watcher

Composer 安装命令:

composer require fetzi/phpspec-watcher

包简介

phpspec-watcher is a cli tool for the automatic execution of phpspec tests when code changes

README 文档

README

Packagist Github Actions StyleCI SensioLabs Insight Maintainability

Introduction

phpspec-watcher is a tool for automating phpspec test execution when the source code of a project changes. On file save the watcher automatically triggers the phpspec test suite and informs the developer about the test results.

Installation

This tool can be installed globally with

composer global require fetzi/phpspec-watcher

or just for one package as dev-dependency

composer require fetzi/phpspec-watcher --dev

Usage

After a global installation you can invoke the watcher by calling

phpspec-watcher watch

If you have installed the watcher as a dev-dependency for one project you can find the binary within the vendor bin directory.

vendor/bin/phpspec-watcher watch

Configuration

The watcher can be configured with a configuration file .phpspec-watcher.yml stored in the project root directory.

The following listing shows the file structure and the option meanings:

fileMask: '*.php'                   # file pattern that should be watched

checkInterval: 1                    # a float value indicating the resource check interval

directories:                        # a list of directories that should be watched
    - app
    - src
    - spec

phpspec:
    binary: vendor/bin/phpspec      # path to the phpspec binary
    arguments: [format=dot]         # additional phpspec arguments

notifications:                      # flags for notfications on success and on error
    onError: true
    onSuccess: true

To speed up the configuration thing there is an initialization command to bootstrap the config file with default values:

phpspec-watcher init

Notifications

The watcher triggers operating system notifications after executing the test suite.

To display the notification icons on Mac you need to install another notifier because AppleScript cannot display custom icons

brew install terminal-notifier

Credits

The idea for creating this package was born after discovering the awesome phpunit-watcher package by Spatie.

License

The MIT License (MIT). Please see the License File for more information.

fetzi/phpspec-watcher 适用场景与选型建议

fetzi/phpspec-watcher 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 35.79k 次下载、GitHub Stars 达 11, 最近一次更新时间为 2017 年 09 月 08 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 fetzi/phpspec-watcher 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 fetzi/phpspec-watcher 我们能提供哪些服务?
定制开发 / 二次开发

基于 fetzi/phpspec-watcher 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 35.79k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 19
  • 依赖项目数: 6
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-09-08