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
We use [Spek](https://github.com/spekframework/spek) to run unit tests.
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.
4
5
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.
6
+
You must create a Spotify application [here](https://developer.spotify.com/dashboard/applications) to get credentials.
6
7
7
-
`export SPOTIFY_CLIENT_ID=your_client_id`
8
+
To run **only** public endpoint tests, run
8
9
9
-
`export SPOTIFY_CLIENT_SECRET=your_client_secret`
10
+
`gradle check`
10
11
11
-
To run **only** public endpoint and utility tests, run `gradle check`
12
+
Note: You must have `SPOTIFY_CLIENT_ID` and `SPOTIFY_CLIENT_SECRET` as environment variables.
12
13
13
-
To run **all** tests, you need a valid Spotify redirect uri, and token (string). These are `SPOTIFY_REDIRECT_URI` and `SPOTIFY_TOKEN_STRING` respectively.
14
+
To run **all** tests, you need a valid Spotify application, redirect uri, and token string. use:
14
15
15
-
Then: `gradle check`
16
+
`gradle check`
17
+
18
+
Note: In addition to `SPOTIFY_CLIENT_ID` and `SPOTIFY_CLIENT_SECRET`, you also must have the following environment
19
+
variables set up: `SPOTIFY_REDIRECT_URI` and `SPOTIFY_TOKEN_STRING`
16
20
17
21
Some tests may fail if you do not allow access to all required scopes. To mitigate this, you can individually grant
18
22
each scope or use the following code snippet to print out the Spotify token string (given a generated authorization code)
<p>These endpoints allow for viewing and controlling user playback. Please view <ahref="https://developer.spotify.com/web-api/working-with-connect/">the official documentation</a>
160
-
for more information on how this works. This is in beta and is available for <strong>premium users only</strong>. Endpoints are <strong>not</strong> guaranteed to work</p>
162
+
for more information on how this works. This is in beta and is available for <strong>premium users only</strong>. Endpoints are <strong>not</strong> guaranteed to work and are subject to change!</p>
<p>Wraps around <ahref="../com.adamratzman.spotify.models/-error-object/index.html#com.adamratzman.spotify.models.ErrorObject">ErrorObject</a></p>
255
+
<p>Wraps around <ahref="../com.adamratzman.spotify.models/-error-object/index.html#com.adamratzman.spotify.models.ErrorObject">ErrorObject</a>. Serialized raw Spotify error response</p>
<p><ahref="../com.adamratzman.spotify/-spotify-app-api/index.html#com.adamratzman.spotify.SpotifyAppApi">SpotifyAppApi</a> builder for api creation using client authorization</p>
<p><ahref="../com.adamratzman.spotify/-spotify-client-api/index.html#com.adamratzman.spotify.SpotifyClientApi">SpotifyClientApi</a> builder for api creation using client authorization</p>
<p>Represents a Spotify Token, retrieved through instantiating a <ahref="#">SpotifyAPI</a></p>
720
+
<p>Represents a Spotify Token, retrieved through instantiating a <ahref="../com.adamratzman.spotify/-spotify-api/index.html#com.adamratzman.spotify.SpotifyApi">SpotifyApi</a></p>
<p>The track attribute wrapper contains a set value for a specific <ahref="../com.adamratzman.spotify.endpoints.public/-tuneable-track-attribute/index.html#com.adamratzman.spotify.endpoints.public.TuneableTrackAttribute">TuneableTrackAttribute</a></p>
0 commit comments