-
Notifications
You must be signed in to change notification settings - Fork 196
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
Feature test inflections #2187
base: 3.x
Are you sure you want to change the base?
Feature test inflections #2187
Changes from all commits
259adb9
4df7349
ec99ac6
7a3d0e2
af85baf
2a36ea3
c3df207
6c554e4
47d25c8
0c791a9
a50341e
72c236d
cf119ba
778fdd3
7a6c4b3
fa92b8e
6d2c573
8898ec7
c97b255
f8ac142
7eb760e
1f2ea5b
f26d180
21c2834
d82600e
3794858
6978331
77578d6
f792001
62bb689
97a8c48
1b263ca
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 |
---|---|---|
|
@@ -56,14 +56,23 @@ These packages will install when you install Terminus. | |
|
||
### Mac OS: | ||
|
||
`> brew tap *** TBD ***` | ||
`> brew install pantheon-systems/external/terminus` for stable version (currently 2.x) | ||
|
||
`> brew install *** TBD ***` | ||
`> brew install pantheon-systems/external/t3` for 3.x (currently alpha status) | ||
|
||
### Ubuntu / WinWSL+Ubuntu: | ||
|
||
`*** TBD ***` | ||
|
||
## Testing | ||
|
||
To run the functional tests: | ||
|
||
1. If you need the basics (php, git, direnv, etc): `brew bundle install` | ||
2. For code coverage: `pecl install pcov` | ||
3. Prepare a new test site, e.g. make a new multidev in ci-terminus-composer | ||
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. The tests currently have the environment hard-coded in most cases, e.g. LocalCommandsTest.php line 64, and line 81 as well. In the tests/Functional directory, when I run ack 'live' | grep 'live' | wc -l gives returns 29, and skimming the results, those matches look like the environment name in every case. So even if you create a multidev, most of the time it's going to run against the hard-coded environment. Obviously this needs to be fixed. |
||
4. Copy .env.dist to .env and make an .envrc to include it with `dotenv`, or copy .env.dist to .envrc and add `export` at the head of each line. Customize values as needed. Use `direnv allow` to enable automatic loading of environment variables needed for tests. | ||
5. Run `composer test:short` to run the short-running functional tests, `composer test:long` to run the ones that take a long time, or `coposer test:functional` to run all of them. | ||
|
||
|
||
| Command | Description | ⚖️ | | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
"minimum-stability": "stable", | ||
"prefer-stable": true, | ||
"require": { | ||
"php": ">=7.4", | ||
"php": ">=7.3", | ||
"ext-json": "*", | ||
"composer/composer": "^2", | ||
"composer/semver": "^3", | ||
|
@@ -62,6 +62,7 @@ | |
"autoload-dev": { | ||
"psr-4": { | ||
"Pantheon\\Terminus\\Tests\\Functional\\": "tests/Functional/", | ||
"Pantheon\\Terminus\\UnitTests\\": "tests/unit_tests/", | ||
"Pantheon\\Terminus\\FeatureTests\\": "tests/features/bootstrap/" | ||
}, | ||
"classmap": [ | ||
|
@@ -74,6 +75,12 @@ | |
"scripts": { | ||
"build": "@phar:build", | ||
"test": "@test:functional", | ||
"phar:install-tools": [ | ||
"gem install mime-types -v 2.6.2", | ||
"curl -LSs https://box-project.github.io/box2/installer.php | php", | ||
"mkdir -p tools", | ||
"mv -f box.phar tools/box" | ||
], | ||
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. I put this stuff here while trying to get the unit tests to run.. but I don't know that it's actually needed for them |
||
"phar:build": [ | ||
"rm -Rf ./t3", | ||
"vendor/bin/phar-composer.phar build .", | ||
|
@@ -135,6 +142,9 @@ | |
"cs": [ | ||
"vendor/bin/phpcs --standard=tests/config/linting_ruleset.xml bin/t3 src tests/Functional" | ||
], | ||
"phpunit": [ | ||
"SHELL_INTERACTIVE=true phpunit --colors=always -c tests/config/phpunit.xml.dist --debug" | ||
], | ||
"docs": [ | ||
"vendor/bin/robo doc ./README.md", | ||
"git add README.md" | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for what it's worth, this was required for them to run, at least when I first got them to run and I can't see why it would have changed.