mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-15 23:05:44 +03:00
Tests: Update infrastructure & add travis config (#100)
* Tests: Move tests infrastructure, set up travis Consolidates the composer files so we can run install once in travis. * Return empty array if no values are $_POST'ed to the form Fixes an issue with tests + null values in logs * Clean up some naming & create helper functions for tests * Debug travis * Remove debug * Fix notices on form * Turn on multisite flag
This commit is contained in:
parent
5c2041442a
commit
03949905c0
12 changed files with 2705 additions and 2583 deletions
|
@ -10,12 +10,17 @@
|
|||
"platform": {
|
||||
"php": "7.2"
|
||||
},
|
||||
"vendor-dir": "mu-plugins/vendor"
|
||||
"vendor-dir": "mu-plugins/vendor",
|
||||
"_comment": "Work around `test:watch` timeout, see https://github.com/spatie/phpunit-watcher/issues/63#issuecomment-545633709",
|
||||
"process-timeout": 0
|
||||
},
|
||||
"require": {},
|
||||
"require-dev": {
|
||||
"_comment" : "PHPUnit 7.x is the latest version that's compatible with Core, see https://core.trac.wordpress.org/ticket/46149",
|
||||
"require-dev" : {
|
||||
"dealerdirect/phpcodesniffer-composer-installer": "0.5.0",
|
||||
"wp-coding-standards/wpcs": "2.1.1"
|
||||
"wp-coding-standards/wpcs": "2.1.1",
|
||||
"phpunit/phpunit" : "^7",
|
||||
"spatie/phpunit-watcher" : "^1.12"
|
||||
},
|
||||
"scripts": {
|
||||
"phpcs": [
|
||||
|
@ -23,6 +28,9 @@
|
|||
],
|
||||
"phpcbf": [
|
||||
"phpcbf -p"
|
||||
]
|
||||
],
|
||||
"test" : "phpunit",
|
||||
"_comment" : "Input won't work when running this via `composer test:watch`. If you want to use PHPUnit Watcher's interactive options then you'll need to call it directly in your terminal. See https://github.com/composer/composer/issues/5856",
|
||||
"test:watch" : "phpunit-watcher watch"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue