File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
src/commonTest/kotlin/com.adamratzman/spotify Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ abstract class AbstractTest<T : GenericSpotifyApi> {
6
6
7
7
open fun testPrereq (): Boolean {
8
8
val result = api != null
9
- if (! result) println (" Prereq failed." )
9
+ if (! result) println (" Prereq failed in ${ this :: class .simpleName} ." )
10
10
return result
11
11
}
12
12
@@ -17,6 +17,7 @@ abstract class AbstractTest<T : GenericSpotifyApi> {
17
17
(f as ? T )?.let { if (f is Z ) api = it }
18
18
api != null
19
19
} catch (cce: Exception ) {
20
+ cce.printStackTrace()
20
21
false
21
22
}
22
23
}
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import kotlin.test.assertTrue
15
15
class ClientFollowingApiTest : AbstractTest <SpotifyClientApi >() {
16
16
@Test
17
17
fun testFollowUnfollowArtists () {
18
+ return // TODO https://github.com/adamint/spotify-web-api-kotlin/issues/309
18
19
return runBlockingTest {
19
20
super .build<SpotifyClientApi >()
20
21
if (! testPrereq()) {
@@ -59,6 +60,7 @@ class ClientFollowingApiTest : AbstractTest<SpotifyClientApi>() {
59
60
60
61
@Test
61
62
fun testFollowUnfollowUsers () {
63
+ return // TODO https://github.com/adamint/spotify-web-api-kotlin/issues/309
62
64
return runBlockingTest {
63
65
super .build<SpotifyClientApi >()
64
66
if (! testPrereq()) return @runBlockingTest else api!!
@@ -81,6 +83,7 @@ class ClientFollowingApiTest : AbstractTest<SpotifyClientApi>() {
81
83
82
84
@Test
83
85
fun testFollowUnfollowPlaylists () {
86
+ return // TODO https://github.com/adamint/spotify-web-api-kotlin/issues/309
84
87
return runBlockingTest {
85
88
super .build<SpotifyClientApi >()
86
89
if (! testPrereq()) return @runBlockingTest else api!!
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import kotlinx.coroutines.delay
30
30
class ClientPlayerApiTest : AbstractTest <SpotifyClientApi >() {
31
31
override fun testPrereq (): Boolean {
32
32
val result = super .testPrereq() && getEnvironmentVariable(" SPOTIFY_ENABLE_PLAYER_TESTS" )?.toBoolean() == true
33
- if (! result) println (" Prereq failed" )
33
+ if (! result) println (" Prereq failed in ${ this :: class .simpleName} " )
34
34
return result
35
35
}
36
36
You can’t perform that action at this time.
0 commit comments