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: TESTING.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,12 @@
1
1
# Testing
2
2
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.
5
4
6
5
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.
7
6
7
+
`export SPOTIFY_CLIENT_ID=your_client_id`
8
+
`export SPOTIFY_CLIENT_SECRET=your_client_secret`
9
+
8
10
To run **only** public endpoint and utility tests, run `gradle check`
9
11
10
12
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