diff --git a/composer.json b/composer.json index d2e6dde53..2db95e7d1 100644 --- a/composer.json +++ b/composer.json @@ -1,34 +1,40 @@ { - "name": "nextcloud/deck", - "type": "project", - "license": "AGPLv3", - "authors": [ - { - "name": "Julius Härtl", - "email": "jus@bitgrid.net" - } - ], - "require": { - "cogpowered/finediff": "0.3.*" - }, - "require-dev": { - "roave/security-advisories": "dev-master", - "christophwurst/nextcloud": "^21@dev", - "phpunit/phpunit": "^8", - "nextcloud/coding-standard": "^0.5.0", - "symfony/event-dispatcher": "^4.0", - "vimeo/psalm": "^4.3", - "php-parallel-lint/php-parallel-lint": "^1.2" - }, - "config": { - "optimize-autoloader": true, - "classmap-authoritative": true - }, - "scripts": { - "lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l", - "cs:check": "php-cs-fixer fix --dry-run --diff", - "cs:fix": "php-cs-fixer fix", + "name": "nextcloud/deck", + "type": "project", + "license": "AGPLv3", + "authors": [ + { + "name": "Julius Härtl", + "email": "jus@bitgrid.net" + } + ], + "require": { + "cogpowered/finediff": "0.3.*" + }, + "require-dev": { + "roave/security-advisories": "dev-master", + "christophwurst/nextcloud": "^21@dev", + "phpunit/phpunit": "^8", + "nextcloud/coding-standard": "^0.5.0", + "symfony/event-dispatcher": "^4.0", + "vimeo/psalm": "^4.3", + "php-parallel-lint/php-parallel-lint": "^1.2" + }, + "config": { + "optimize-autoloader": true, + "classmap-authoritative": true + }, + "scripts": { + "lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l", + "cs:check": "php-cs-fixer fix --dry-run --diff", + "cs:fix": "php-cs-fixer fix", "psalm": "psalm", - "psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MismatchingDocblockParamType,MismatchingDocblockReturnType,MissingParamType,InvalidFalsableReturnType" - } + "psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MismatchingDocblockParamType,MismatchingDocblockReturnType,MissingParamType,InvalidFalsableReturnType", + "test": [ + "@test:unit", + "@test:integration" + ], + "test:unit": "phpunit -c tests/phpunit.xml", + "test:integration": "phpunit -c tests/phpunit.integration.xml && cd tests/integration && ./run.sh" + } }