Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/backendtea/watch-phpunit
Run tests for changed files
https://github.com/backendtea/watch-phpunit
Last synced: 2 months ago
JSON representation
Run tests for changed files
- Host: GitHub
- URL: https://github.com/backendtea/watch-phpunit
- Owner: BackEndTea
- License: mit
- Created: 2019-06-26T20:06:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-06T19:01:16.000Z (about 5 years ago)
- Last Synced: 2024-05-02T02:43:59.978Z (9 months ago)
- Language: PHP
- Size: 24.4 KB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Watch Phpunit
## Installation
```
composer require backendtea/watch-phpunit --dev
```
## What is this
The intention of this application is to 'watch' for file changes,
and run the tests related to files that have been changed since the last git commit.
This does mean that in its current form it needs to be in a git repository.It figures out what classes depend on each other, and then runs the tests related to the
changed files.## Usage
```
$ vendor/bin/watch-phpunit watch --src ./src --test ./tests
```
(src and tests are the default values, so if your folder structure matches this, you can run it like so:)
```
$ vendor/bin/watch-phpunit watch
```