Skip to content

Commit 1d8e7b8

Browse files
committed
split composer scripts, add description (only works with composer 1.6)
1 parent d2b9e88 commit 1d8e7b8

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

composer.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,28 @@
3535
}
3636
],
3737
"scripts": {
38+
"test": [
39+
"./vendor/bin/phpunit --color=always"
40+
],
41+
"test-no-coverage": [
42+
"./vendor/bin/phpunit --color=always --no-coverage"
43+
],
3844
"check": [
3945
"./vendor/bin/php-cs-fixer fix --ansi --dry-run --diff",
4046
"./vendor/bin/phpcs --report-width=200 --report-summary --report-full samples/ src/ tests/ --ignore=src/PhpWord/Shared/PCLZip --standard=PSR2 -n",
4147
"./vendor/bin/phpmd src/,tests/ text ./phpmd.xml.dist --exclude pclzip.lib.php",
42-
"./vendor/bin/phpunit --color=always"
48+
"@test"
4349
],
4450
"fix": [
4551
"./vendor/bin/php-cs-fixer fix --ansi"
4652
]
4753
},
54+
"scripts-descriptions": {
55+
"test": "Runs all unit tests",
56+
"test-no-coverage": "Runs all unit tests, without code coverage",
57+
"check": "Runs PHP CheckStyle and PHP Mess detector",
58+
"fix": "Fixes issues found by PHP-CS"
59+
},
4860
"require": {
4961
"php": "^5.3.3 || ^7.0",
5062
"ext-xml": "*",

0 commit comments

Comments
 (0)