@@ -11,8 +11,9 @@ Setting Up
1111
12121 . Clone this Git repository on your local machine.
13132 . Install [ Composer] ( https://getcomposer.org/ ) if you don't already have it.
14- 3 . Run ` composer install ` to fetch all the dependencies.
15- 4 . Run ` ./bin/terminus --help ` to test that everything was installed properly.
14+ 3 . Install [ Box] ( https://github.com/box-project/box ) if not already installed.
15+ 4 . Run ` composer install ` to fetch all the dependencies.
16+ 5 . Run ` ./bin/terminus --help ` to test that everything was installed properly.
1617
1718Submitting Patches
1819------------------
@@ -45,14 +46,30 @@ The PHP code beautifier can automatically fix a number of style issues. Run it v
4546 composer cbf
4647 ```
4748
49+ Building the PHAR
50+ -------------------------
51+
52+ Terminus is built into a PHAR package using [ Box] ( https://github.com/box-project/box ) , which must
53+ be installed first.
54+
55+ From the root directory, build the package with:
56+
57+ ` composer build `
58+
59+ This ` terminus.phar ` file is required to be built prior to running tests. Running the build will
60+ first clear out dev dependencies that were added via ` composer install ` and those will need to be
61+ reinstalled before continuing development.
62+
4863Running and Writing Tests
4964-------------------------
5065
5166Terminus uses functional tests implemented using [ PHPUnit] ( http://phpunit.de/ )
5267
53- The tests can be run via:
68+ A ` .env ` file is required which can be based on ` .env.dist ` and must contain a site name for testing
69+ which has a paid plan enabled for multidev, specify an environment to use for the tests, a user
70+ account that owns that site, a machine token (TERMINUS_TOKEN) for that user, and an organization.
5471
55- ` composer test:functional `
72+ A PHAR file must also be built before running tests.
5673
5774### Functional Tests
5875
@@ -65,6 +82,9 @@ The Terminus 3.x functional tests can be run via:
6582 composer test:functional
6683 ```
6784
85+ This will take some time to complete and will produce a report at the end with any failed or
86+ skipped tests. To run a specific test, find the test's group in the comments above the test and
87+ use the command specified in ` composer.json ` under ` test:functional ` with ` --group=<the-group> `
6888
6989Versioning
7090----------
0 commit comments