You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+36-10
Original file line number
Diff line number
Diff line change
@@ -7,30 +7,56 @@
7
7
8
8
## Testing
9
9
10
-
```sh
11
-
# Run the tests.
12
-
$ npm test
10
+
### Unit tests
13
11
14
-
# Run the regression tests.
15
-
$ npm run regression-test
12
+
To run the unit tests, simply run:
16
13
17
-
# See the test coverage report.
18
-
$ npm run cover
14
+
```sh
15
+
$ npm test
19
16
```
20
17
21
-
To run the regression tests, first create and configure a project following the [instructions on how to run gcloud-node][elsewhere]. After that, set the following environment variables:
18
+
### Regression Tests
19
+
20
+
To run the regression tests, first create and configure a project in the Google Developers Console following the [instructions on how to run gcloud-node][elsewhere]. After that, set the following environment variables:
22
21
23
22
-**GCLOUD_TESTS_PROJECT_ID**: Developers Console project's ID (e.g. bamboo-shift-455)
24
23
-**GCLOUD_TESTS_BUCKET_NAME**: The name of the bucket to use for the Cloud Storage API tests
25
24
-**GCLOUD_TESTS_KEY**: The path to the JSON key file.
26
25
27
-
Lastly, create the indexes used in the datastore regression tests using the [gcloud command-line tool][gcloudcli] and the indexes found in `regression/data/index/yaml`:
26
+
Install the [gcloud command-line tool][gcloudcli] to your machine and use it to create the indexes used in the datastore regression tests with indexes found in `regression/data/index/yaml`:
27
+
28
+
From the project's root directory:
28
29
29
30
```sh
30
-
# From the project's root directory:
31
+
# Install the app component
32
+
$ gcloud components update app
33
+
34
+
# Set the default project in your env
35
+
$ gcloud config set project $GCLOUD_TESTS_PROJECT_ID
This client supports the following Google Cloud services:
@@ -42,25 +42,27 @@ If you are not running this client on Google Compute Engine, you need a Google D
42
42
43
43
See the [Google Cloud Datastore docs](https://developers.google.com/datastore/docs/activate) for more details on how to activate Cloud Datastore for your project.
44
44
45
-
See [the API documentation](https://googlecloudplatform.github.io/gcloud-node/module-datastore.html) to learn how to interact with the Cloud Datastore using this Client Library.
45
+
See [the gcloud-node API documentation](https://googlecloudplatform.github.io/gcloud-node/#/docs/datastore) to learn how to interact with the Cloud Datastore using this Client Library.
You need to create a Google Cloud Storage bucket to use this client library. Follow the steps on the [Google Cloud Storage docs](https://developers.google.com/storage/docs/cloud-console#_creatingbuckets) to learn how to create a bucket.
71
73
72
-
See [the API documentation](https://googlecloudplatform.github.io/gcloud-node/module-storage.html) to learn how to connect to the Cloud Storage using this Client Library.
74
+
See [the gcloud-node API documentation](https://googlecloudplatform.github.io/gcloud-node/#/docs/storage) to learn how to connect to the Cloud Storage using this Client Library.
0 commit comments