diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 266c467075e..c7846ec7e72 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -41,7 +41,15 @@ You will need a "local" version of OpenEMR to make changes to the source code. T - To fix PSR12 code styling issues (this takes several minutes): ```sh docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c '/root/devtools psr12-fix' + ``` + - To create a report of theme styling issues: + ```sh + docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c '/root/devtools lint-themes-report' ``` + - To fix theme styling issues: + ```sh + docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c '/root/devtools lint-themes-fix' + ``` - To check PHP parsing errors (this takes several minutes): ```sh docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c '/root/devtools php-parserror' @@ -70,11 +78,15 @@ You will need a "local" version of OpenEMR to make changes to the source code. T ```sh docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c '/root/devtools validators-test' ``` -8. To run the entire dev tool suite (PHPCS fix, PHP parse error, unit/API/e2e/services/fixtures/validators tests) in one command, run + - To run controllers testing: + ```sh + docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c '/root/devtools controllers-test' + ``` +8. To run the entire dev tool suite (PSR12 fix, lint themes fix, PHP parse error, unit/API/e2e/services/fixtures/validators/controllers tests) in one command, run ```sh docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c '/root/devtools clean-sweep' ``` -9. To run only all the automated tests (unit/API/e2e/services/fixtures/validators tests) in one command, run +9. To run only all the automated tests (unit/API/e2e/services/fixtures/validators/controllers tests) in one command, run ```sh docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c '/root/devtools clean-sweep-tests' ```