Skip to content

Commit d40dbac

Browse files
authored
add example setting environment variable
1 parent 0d60099 commit d40dbac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

TESTING.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Testing
22

3-
We use [Spek](https://github.com/spekframework/spek) to run unit tests. You must add Maven Central to the gradle repositories
4-
in order to pull Spek.
3+
We use [Spek](https://github.com/spekframework/spek) to run unit tests.
54

65
To run any test, you must have two environment variables, `SPOTIFY_CLIENT_ID` and `SPOTIFY_CLIENT_SECRET` set to a Spotify application in your current shell.
76

7+
`export SPOTIFY_CLIENT_ID=your_client_id`
8+
`export SPOTIFY_CLIENT_SECRET=your_client_secret`
9+
810
To run **only** public endpoint and utility tests, run `gradle check`
911

1012
To run **all** tests, you need a valid Spotify redirect uri, and token (string). These are `SPOTIFY_REDIRECT_URI` and `SPOTIFY_TOKEN_STRING` respectively.

0 commit comments

Comments
 (0)