-
Notifications
You must be signed in to change notification settings - Fork 75
Multi PHP + Multi Environment + Check all commits #212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 17 commits
775ce38
80b179a
ee4ac7b
78c5e61
331ecc3
ef8a5de
58034b0
9205042
8b49cb2
09bf9a6
fea79f5
0878108
109f52d
07e45fc
d9106c9
5702840
2e3b29d
d3eedad
64d44e8
7f546e3
caa2e34
d8e35c1
7c6ae9a
5f232a1
770200c
805d78d
070c9d5
234a0e3
398b809
e1abdad
592e6c7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,12 +11,16 @@ | |
| # $ source .env | ||
| ### | ||
|
|
||
| # Label for the environment. Can be empty (default) or be like "shared", "vps", "cloud" or similar. | ||
| # Please use only alphanumeric keywords, and try to be descriptive | ||
| export WPT_LABEL= | ||
|
|
||
| # Path to the directory where files can be prepared before being delivered to the environment. | ||
| export WPT_PREPARE_DIR=/tmp/wp-test-runner | ||
|
|
||
| # Path to the directory where the WordPress develop checkout can be placed and tests can be run. | ||
| # When running tests in the same environment, set WPT_TEST_DIR to WPT_PREPARE_DIR | ||
| export WPT_TEST_DIR=wp-test-runner | ||
| export WPT_TEST_DIR=/tmp/wp-test-runner | ||
|
|
||
| # API key to authenticate with the reporting service in 'username:password' format. | ||
| export WPT_REPORT_API_KEY= | ||
|
|
@@ -38,6 +42,9 @@ export WPT_TABLE_PREFIX=${WPT_TABLE_PREFIX-wptests_} | |
| # (Optionally) define the PHP executable to be called | ||
| export WPT_PHP_EXECUTABLE=${WPT_PHP_EXECUTABLE-php} | ||
|
|
||
| # (Optionally) array of versions (like: 8.0+/bin/php8.0,8.1+/bin/php8.1) | ||
| export WPT_PHP_EXECUTABLE_MULTI= | ||
|
|
||
| # (Optionally) define the PHPUnit command execution call. | ||
| # Use if `php phpunit.phar` can't be called directly for some reason. | ||
| export WPT_PHPUNIT_CMD= | ||
|
|
@@ -63,16 +70,21 @@ export WPT_DEBUG= | |
|
|
||
| # Certificate validation | ||
| # Use 1 to validate, and 0 to not validate | ||
| export WPT_CERTIFICATE_VALIDATION=1 | ||
| export WPT_CERTIFICATE_VALIDATION=0 | ||
|
|
||
| # WordPress flavor | ||
| # 0 = WordPress (simple version) | ||
| # 1 = WordPress Multisite | ||
| export WPT_FLAVOR=1 | ||
| export WPT_FLAVOR=0 | ||
|
|
||
| # Extra tests (groups) | ||
| # 0 = none | ||
| # 1 = ajax | ||
| # 2 = ms-files | ||
| # 3 = external-http | ||
| export WPT_EXTRATESTS=0 | ||
|
|
||
| # Check all commits | ||
| # 0 = latest | ||
| # 1 = all | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All is a bit misleading here because the API caps the results per page at 100. The default is 30. I would change this to an on or off value. If it's on, the runner will query for the last 30 commits and add them to the queue if they have not yet been tested. If it's off, then only the most recent commit when the runner starts should be tested. Regardless of this value, though, I think that the |
||
| export WPT_COMMITS=0 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not quite clear what each of these represent based on their names. Have the Are Also, not sure if this file is here for testing purposes, but it should probably be added to the |
||
| "executed_commits": [], | ||
| "pending_commits": [], | ||
| "testing_commit": [] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "executed_commits": ["hash3"], | ||
| "pending_commits": ["hash1", "hash2", ..., "hash10"], | ||
| "testing_commit": ["hash4"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # About the PHPUnit Test Runner | ||
|
|
||
| Hosting companies can have several to millions of websites hosted with WordPress, so it's important to make sure their configuration is as compatible as possible with the software. | ||
|
|
||
| To verify this compatibility, the WordPress Community provides a series of PHPUnit tests with which to check the operation of WordPress in any environment. | ||
|
|
||
| The Runner tests generates a report with the test results related to a bot user (a hosting company), and this captures and displays those test results at the [Host Test Result](https://make.wordpress.org/hosting/test-results/) page. | ||
|
|
||
| ## What's the phpunit-test-runner | ||
|
|
||
| The [phpunit-test-runner](https://github.com/WordPress/phpunit-test-runner) is a tool designed to make it easier for hosting companies to run the WordPress project’s automated tests. | ||
|
|
||
| There is a [whole documentation about this tool](https://make.wordpress.org/hosting/test-results-getting-started/). Also, if you want, you can make your test results appear in the [Host Test Results](https://make.wordpress.org/hosting/test-results/) page of WordPress. | ||
|
|
||
| The tool can be run manually or through an automated system like Travis. To see how it works and the purpose of this document, will be shown how to run the tests manually. |
Uh oh!
There was an error while loading. Please reload this page.