mirror of
https://github.com/getgrav/grav.git
synced 2025-11-02 19:36:06 +01:00
Add test script to composer
This commit is contained in:
@@ -120,4 +120,4 @@ See [LICENSE](LICENSE.txt)
|
|||||||
# Running Tests
|
# Running Tests
|
||||||
|
|
||||||
First install the dev dependencies by running `composer update` from the Grav root.
|
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.
|
||||||
|
|||||||
@@ -47,7 +47,8 @@
|
|||||||
"exclude": ["VERSION"]
|
"exclude": ["VERSION"]
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"post-create-project-cmd": "bin/grav install"
|
"post-create-project-cmd": "bin/grav install",
|
||||||
|
"test": "vendor/bin/codecept run unit"
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
|
|||||||
Reference in New Issue
Block a user