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> {
66
77 open fun testPrereq (): Boolean {
88 val result = api != null
9- if (! result) println (" Prereq failed." )
9+ if (! result) println (" Prereq failed in ${ this :: class .simpleName} ." )
1010 return result
1111 }
1212
@@ -17,6 +17,7 @@ abstract class AbstractTest<T : GenericSpotifyApi> {
1717 (f as ? T )?.let { if (f is Z ) api = it }
1818 api != null
1919 } catch (cce: Exception ) {
20+ cce.printStackTrace()
2021 false
2122 }
2223 }
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import kotlin.test.assertTrue
1515class ClientFollowingApiTest : AbstractTest <SpotifyClientApi >() {
1616 @Test
1717 fun testFollowUnfollowArtists () {
18+ return // TODO https://github.com/adamint/spotify-web-api-kotlin/issues/309
1819 return runBlockingTest {
1920 super .build<SpotifyClientApi >()
2021 if (! testPrereq()) {
@@ -59,6 +60,7 @@ class ClientFollowingApiTest : AbstractTest<SpotifyClientApi>() {
5960
6061 @Test
6162 fun testFollowUnfollowUsers () {
63+ return // TODO https://github.com/adamint/spotify-web-api-kotlin/issues/309
6264 return runBlockingTest {
6365 super .build<SpotifyClientApi >()
6466 if (! testPrereq()) return @runBlockingTest else api!!
@@ -81,6 +83,7 @@ class ClientFollowingApiTest : AbstractTest<SpotifyClientApi>() {
8183
8284 @Test
8385 fun testFollowUnfollowPlaylists () {
86+ return // TODO https://github.com/adamint/spotify-web-api-kotlin/issues/309
8487 return runBlockingTest {
8588 super .build<SpotifyClientApi >()
8689 if (! testPrereq()) return @runBlockingTest else api!!
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import kotlinx.coroutines.delay
3030class ClientPlayerApiTest : AbstractTest <SpotifyClientApi >() {
3131 override fun testPrereq (): Boolean {
3232 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} " )
3434 return result
3535 }
3636
You can’t perform that action at this time.
0 commit comments