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
To use the latest snapshot instead, you must add the Jitpack repository
@@ -68,6 +68,7 @@ includes options for asynchronous and blocking execution in all endpoints. Howev
68
68
due to this, you **must** call one of the provided methods in order for the call
69
69
to execute! The `SpotifyRestAction` provides four methods for use: 1 blocking and 3 async.
70
70
-`complete()` blocks the current thread and returns the result
71
+
-`queue()` executes and immediately returns
71
72
-`queue(consumer: (T) -> Unit)` executes the provided callback as soon as the request
72
73
is asynchronously evaluated
73
74
-`queueAfter(quantity: Int, timeUnit: TimeUnit, consumer: (T) -> Unit)` executes the
@@ -135,16 +136,8 @@ will be populated with the href, uri, and, most importantly, the id of the track
135
136
You can then use this track in clientApi actions such as playing or saving the track, knowing that it will be playable
136
137
in your market!
137
138
138
-
### Testing
139
-
We use [Spek](https://github.com/spekframework/spek), which integrates with the JUnit runner, for testing. To run any test, you
140
-
need to run `gradle test -PclientId=YOUR_CLIENT_ID -PclientSecret=YOUR_CLIENT_SECRET`. If you'd like to run the client tests
141
-
as well, you need to add the `spotifyRedirectUri` parameter, along with `spotifyTokenString`
142
-
143
-
Some tests may fail if you do not allow access to all required scopes. Look carefully to see which ones fail,
144
-
as there's a high probability that it's a scope issue.
145
-
146
-
An example: `gradle test -PclientId=YOUR_CLIENT_ID -PclientSecret=YOUR_CLIENT_SECRET -PspotifyRedirectUri=SPOTIFY_REDIRECT_URI -PspotifyTokenString=SPOTIFY_TOKEN`
We use [Spek](https://github.com/spekframework/spek) to run unit tests.
4
+
5
+
To run **only** public endpoint tests, run
6
+
7
+
`gradle test -PclientId=YOUR_CLIENT_ID -PclientSecret=YOUR_CLIENT_SECRET`
8
+
9
+
To run **all** tests, you need a valid Spotify application, redirect uri, and token string. use:
10
+
11
+
An example: `gradle test -PclientId=YOUR_CLIENT_ID -PclientSecret=YOUR_CLIENT_SECRET -PspotifyRedirectUri=SPOTIFY_REDIRECT_URI -PspotifyTokenString=SPOTIFY_TOKEN`
12
+
13
+
Some tests may fail if you do not allow access to all required scopes. To mitigate this, you can individually grant
14
+
each scope or use the following code snippet to print out the Spotify token string (given a generated authorization code)
0 commit comments