Skip to content

Commit

Permalink
test: Disable iOS test for Windows (#1274)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotradamczyk5 authored Oct 28, 2020
1 parent ecd6c9c commit a56e7cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test_runner/src/test/kotlin/ftl/gc/GcIosTestMatrixTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import com.dd.plist.NSDictionary
import com.google.api.services.testing.model.IosDeviceList
import ftl.shard.Chunk
import ftl.args.IosArgs
import ftl.config.FtlConstants.isWindows
import ftl.ios.FIXTURES_PATH
import ftl.shard.TestMethod
import ftl.test.util.FlankTestRunner
Expand All @@ -13,6 +14,7 @@ import io.mockk.mockk
import io.mockk.unmockkAll
import org.junit.After
import org.junit.Assert.assertEquals
import org.junit.Assume.assumeFalse
import org.junit.Test
import org.junit.runner.RunWith
import java.io.StringReader
Expand Down Expand Up @@ -62,6 +64,8 @@ class GcIosTestMatrixTest {

@Test
fun `build validArgs`() {
assumeFalse(isWindows) // TODO enable it on #1180

val iosArgs = mockk<IosArgs>(relaxed = true)
every { iosArgs.testShardChunks } returns listOf(Chunk(listOf(TestMethod(name = "", time = 0.0))))
every { iosArgs.testTimeout } returns "3m"
Expand Down
6 changes: 6 additions & 0 deletions test_runner/src/test/kotlin/ftl/ios/XctestrunTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ class XctestrunTest {

@Test
fun `rewrite methods in multiple test targets`() {
assumeFalse(isWindows) // TODO enable it on #1180

val expectedMethods1 = listOf("FlankExampleTests/test1", "FlankExampleTests/test2")
val expectedMethods2 = listOf("FlankExampleSecondTests/test3")

Expand All @@ -261,6 +263,8 @@ class XctestrunTest {

@Test
fun `rewrite incorrect methods in multiple test targets`() {
assumeFalse(isWindows) // TODO enable it on #1180

val methods1 = listOf("incorrect1", "incorrect2")
val methods2 = listOf("incorrect3")

Expand All @@ -278,6 +282,8 @@ class XctestrunTest {

@Test
fun `rewrite mix of correct and incorrect methods in multiple test targets`() {
assumeFalse(isWindows) // TODO enable it on #1180

val methods1 = listOf("FlankExampleTests/test1", "FlankExampleTests/test2", "incorrect1")
val methods2 = listOf("FlankExampleSecondTests/test3", "incorrect2")

Expand Down

0 comments on commit a56e7cc

Please sign in to comment.