Skip to content

Commit

Permalink
updated easy dev docker dockers for new dev tools (openemr#3476)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymiller committed May 3, 2020
1 parent ccfe9b3 commit 8af4c81
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
```
Expand Down

0 comments on commit 8af4c81

Please sign in to comment.