-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4eb8586
commit 6b360f9
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Contribution guide | ||
|
||
## Running tests | ||
|
||
To run the test suite, you need a Google Cloud Storage bucket and a Service Account with a key. You must also set the following environment variables: | ||
|
||
* `TEST_GCLOUD_BUCKET` — the name of the bucket. | ||
* `TEST_GCLOUD_CREDENTIALS_PATH` — path to the Service Account's keyfile. | ||
|
||
It's best to put these in a `.env` file so that you don't have to supply these variables over and over. The test suite automatically loads environment variables from `.env`. | ||
|
||
Then run the test suite with: | ||
|
||
~~~bash | ||
bundle exec rspec | ||
~~~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'dotenv' | ||
require 'google/cloud/errors' | ||
require 'rspec/retry' | ||
|