Skip to content

Commit

Permalink
add one command for all php tests #2766
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Pollock committed Oct 25, 2018
1 parent 4ff1985 commit 626b610
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ The local server is [http://localhost:8228](http://localhost:8228)

#### Commands
##### Composer
* `composer test:php` - Run PHP tests -- isolated unit tests and the WordPress integration tests.
* `composer dev:install` - Installs dependencies, Docker-based test environment and sets up test forms.
* `composer dev:destroy` - Deletes dependencies and the Docker-based test environment.
* `composer wp:install` - Installs Docker-based test environment.
Expand All @@ -123,6 +124,7 @@ Probably don't use these directly. They will change. Must be prefaced with `dock
* `wp cf delete-test-forms` - Delete test forms
* `wp cf create-test-pages` - Import test pages
* `wp cf delete-test-pages` - Delete test pages

### Release To WordPress.org
##### Requires
* [svn](https://subversion.apache.org/quick-start#installing-the-client)
Expand Down
2 changes: 1 addition & 1 deletion clients/render/build/index.min.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"mockery/mockery": ">=0.9 <2"
},
"scripts" : {
"test:php": "composer test:unit && composer wp:tests",
"dev:install": "composer install && npm install && composer wp:install && composer wp:activate && composer test:setup",
"dev:destroy": "composer nuke && composer wp:destroy",
"nuke": "rm package-lock.json && rm composer.lock && rm yarn.lock && rm -rf node_modules/ && rm -rf vendor",
Expand Down

0 comments on commit 626b610

Please sign in to comment.