Youwe Testing Suite is an all-in-one solution for doing static code analysis on composer packages/projects. It does so both locally and in CI/CD. For this, Testing-suite leverages GrumPHP with predefined default configurations per project type.
- Composer file validation
- JSON Lint
- YamlLint
- Coding Standards (PHPCS)
- Mess Detector (PHPMD)
- Find bugs before they reach production (PHPStan)
- Execute Unit tests (PHPUnit)
- PHP Lint
- Find and fix problems in your JavaScript code (ESLint)
- Enlighten Security Checker
Testing suite is supposed to be installed as a composer dev
dependency.
Within any project just run the command below to install the package:
composer require youwe/testing-suite --dev
If a project-type is detected, standards will be applied (otherwise a wizard will be opened)
The testing suite can be run manually through the GrumPHP command.
vendor/bin/grumphp run
The testing suite is also automatically run at each git commit using a git commit hook.
See the Changelog file for all changes.