From 8af4c81e56a307ee27dae328aa1139b0154fa159 Mon Sep 17 00:00:00 2001 From: Brady Miller Date: Sun, 3 May 2020 14:43:21 -0700 Subject: [PATCH] updated easy dev docker dockers for new dev tools (#3476) --- CONTRIBUTING.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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' ```