File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,26 @@ accept your pull requests.
26261 . If your proposed change is accepted, and you haven't already done so, sign a
2727 Contributor License Agreement (see details above).
28281 . Fork the desired repo, develop and test your code changes.
29+
30+ To run the tests, first set up [ application default
31+ credentials] ( https://cloud.google.com/docs/authentication/getting-started )
32+ by setting the environment variable ` GOOGLE_APPLICATION_CREDENTIALS ` to the
33+ path to a service account key JSON file.
34+
35+ Then set any environment variables needed by the test. Check the
36+ ` $SAMPLES_DIRECTORY/test ` directory to see what specific variables are needed.
37+ ```
38+ export GOOGLE_PROJECT_ID=YOUR_PROJECT_ID
39+ export GOOGLE_BUCKET_NAME=YOUR_BUCKET
40+ ```
41+
42+ To run the tests in a samples directory,
43+ ```
44+ cd $SAMPLES_DIRECTORY
45+ composer install
46+ vendor/bin/phpunit
47+ ```
48+
29491 . Ensure that your code adheres to the existing style in the sample to which
3050 you are contributing.
31511 . Ensure that your code has an appropriate set of unit tests which all pass.
You can’t perform that action at this time.
0 commit comments