Skip to content

Commit d6d8d78

Browse files
committed
Replace grunt with phpunit-watcher for continuous testing
1 parent 62f8685 commit d6d8d78

File tree

6 files changed

+978
-63
lines changed

6 files changed

+978
-63
lines changed

Gruntfile.js

-20
This file was deleted.

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ One more way to run tests is to use Docker:
5858

5959
`docker-compose run tests`
6060

61-
## Using Grunt for Continuous Testing
61+
## Continuous Testing
6262

63-
* Install Node.js
64-
* Install dependencies via `npm install` command
65-
* Run `REMOTE_HOST=your-plesk-host.dom REMOTE_PASSWORD=password grunt watch:test`
63+
During active development it could be more convenient to run tests in continuous manner. Here is the way how to achieve it:
64+
65+
`REMOTE_URL=https://your-plesk-host.dom:port REMOTE_PASSWORD=password composer test:watch`

composer.json

+10-2
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,28 @@
1313
"email": "[email protected]"
1414
}
1515
],
16+
"repositories": [
17+
{
18+
"url": "https://github.com/sibprogrammer/phpunit-watcher.git",
19+
"type": "git"
20+
}
21+
],
1622
"require": {
1723
"php": "^7.3",
1824
"ext-curl": "*",
1925
"ext-xml": "*",
2026
"ext-simplexml": "*"
2127
},
2228
"require-dev": {
23-
"phpunit/phpunit": "^8"
29+
"phpunit/phpunit": "^8",
30+
"spatie/phpunit-watcher": "dev-master"
2431
},
2532
"config": {
2633
"process-timeout": 0
2734
},
2835
"scripts": {
29-
"test": "phpunit"
36+
"test": "phpunit",
37+
"test:watch": "phpunit-watcher watch"
3038
},
3139
"autoload": {
3240
"psr-4": {

0 commit comments

Comments
 (0)