backendtea/watch-phpunit

运行变更文件的测试

0.1.0 2019-08-10 21:56 UTC

This package is auto-updated.

Last update: 2024-09-07 05:26:07 UTC


README

安装

composer require backendtea/watch-phpunit --dev

这是什么

该应用程序的目的是“监视”文件变更,并运行自上次git提交以来已变更的文件的关联测试。这意味着在当前形式下,它需要在一个git仓库中。

它确定哪些类相互依赖,然后运行与变更文件相关的测试。

用法

$ vendor/bin/watch-phpunit watch --src ./src --test ./tests

(src 和 tests 是默认值,所以如果你的文件夹结构与此匹配,你可以这样运行:)

$ vendor/bin/watch-phpunit watch