Add test script to composer

This commit is contained in:
Flavio Copes
2016-01-21 12:41:32 +01:00
parent 722bc3e74b
commit b248b39dc7
2 changed files with 3 additions and 2 deletions

View File

@@ -120,4 +120,4 @@ See [LICENSE](LICENSE.txt)
# Running Tests
First install the dev dependencies by running `composer update` from the Grav root.
Then `./vendor/bin/codecept run unit` will run the Unit Tests, which should be always executed successfully on any site.
Then `composer test` will run the Unit Tests, which should be always executed successfully on any site.

View File

@@ -47,7 +47,8 @@
"exclude": ["VERSION"]
},
"scripts": {
"post-create-project-cmd": "bin/grav install"
"post-create-project-cmd": "bin/grav install",
"test": "vendor/bin/codecept run unit"
},
"extra": {
"branch-alias": {