Download the PHP package elgentos/testing-suite without Composer
On this page you can find all versions of the php package elgentos/testing-suite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package testing-suite
elgentos/testing-suite
This uses youwe/testing-suite
, but we can add/change tests/packages/configuration as we like.
Installation
Configuration
Add this to your phpstan.neon
;
Baselines
When implementing this into an existing project, you might want to consider generating baselines so the tests will pass without having to fix all the files.
Phpstan baseline
Generate the baseline (replace app/design/frontend app/code
with your dirs);
Then add this to your phpstan.neon
;
Phpmd baseline
Generate the baseline (replace app/design/frontend,app/code
with your dirs);
Phpcs baseline
Generate the baseline (replace app/design/frontend app/code
with your dirs);
Run it
Gitlab CI/CD
If you are implementing this in an existing project, do the work to make all tests pass (or add the baselines). As soon as all tests pass, make sure to make the static testing job required in our internal Gitlab CI/CD, by adding this to the projects' .gitlab-ci.yml
:
Configure Phpstorm
This assumes you're using our Docker environment.
- Go to Settings > PHP > Quality Tools
- Perform these steps for
PHP_CodeSniffer
,Mess Detector
,PHP CS Fixer
andPHPStan
:- Click on the
...
behind the Configuration dropdown. - Click on the blue
+
sign. - Choose
development_php81:latest
, click OK - Click Ok
- Click on the
- Go to Settings > Editor > Inspections > PHP > Quality Tools
- Disable
PHP CS Fixer validation
- Enable
PHP Mess Detector validation
- Under "Custom Rulesets", clear the list and add
vendor/youwe/coding-standard-magento2/src/YouweMagento2/
- Click Apply
- Under "Custom Rulesets", clear the list and add
- Enable
PHP_CodeSniffer validation
- Under "Coding standard", choose "YouweMagento2"
- Click Apply
- Enable
PHPStan validation
- Make sure the Configuration file and the Autoload file paths are empty
- Make sure you have the
phpstan.neon
file in your project root - Click Apply
- Disable
Psalm validation
- Disable
All versions of testing-suite with dependencies
digitalrevolution/php-codesniffer-baseline Version ^1.1
elgentos/coding-standard-phpstorm Version ^1.0
youwe/testing-suite Version ^2.12