psvneo / qa-toolset-t3
This package contains a collection of tools used for QA of TYPO3 extensions developed at PSV NEO GmbH.
1.2.0
2023-08-16 08:29 UTC
Requires
- php: ^7.4 || ^8.0
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: ^9.6
- psvneo/qa-toolset-t3-configs: ^1.0
- symfony/console: ^5.2
- symfony/process: ^5.2
- typo3/cms-core: ^11.5
- typo3/testing-framework: ^6.16
README
This package contains a collection of tools used for QA of TYPO3 extensions developed at PSV NEO GmbH.
Contained tools
- phpunit
- php-cs-fixer
- phpstan
- phpmd
- typoscript-linter
- rector
How to use
You can run the binary with the following options:
Usage: $0 [options] [file]
Options:
-s <...>
Specifies which test suite to run
- lint-php: Lints php files.
- lint-code-style: Lints code style errors.
- lint-typoscript: Lints typoscript files.
- lint-debug: Lints for debug usage.
- lint-feature-support: Checks if the code is ready for used TYPO3 and PHP version.
- analyze: Analyzes php code.
- qa: Checks general code quality.
- fix-code-style: Fixes code style errors automatically.
- fix-feature-support: Fixes code to be ready for used TYPO3 and PHP version.
- unit: Runs unit tests.
- functional: Runs functional tests.
-p <8.1>
Specifies the PHP minor version to be used
- 8.1 (default): use PHP 8.1
-e "<phpunit options>"
Only with -s functional|unit
Additional options to send to phpunit (unit & functional tests).
Starting with "--" must be added after options starting with "-".
Example -e "-v --filter canRetrieveValueWithGP" to enable verbose output AND filter tests
named "canRetrieveValueWithGP"
-h
Show this help.
Examples:
# Run code quality checks.
.Build/bin/t3qa.sh -s qa