From 4002c4e91cb42ef77e93cac57ac49823629d33da Mon Sep 17 00:00:00 2001 From: Szymon Świstun Date: Thu, 27 Feb 2020 14:50:27 +0100 Subject: Add expect with generation --- plugins/base/src/test/kotlin/expect/ExpectGenerator.kt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 plugins/base/src/test/kotlin/expect/ExpectGenerator.kt (limited to 'plugins/base/src/test/kotlin/expect/ExpectGenerator.kt') diff --git a/plugins/base/src/test/kotlin/expect/ExpectGenerator.kt b/plugins/base/src/test/kotlin/expect/ExpectGenerator.kt new file mode 100644 index 00000000..667fc249 --- /dev/null +++ b/plugins/base/src/test/kotlin/expect/ExpectGenerator.kt @@ -0,0 +1,15 @@ +package expect + +import org.junit.jupiter.api.Disabled +import org.junit.jupiter.api.Test +import java.nio.file.Files +import java.nio.file.Path + +class ExpectGenerator : AbstractExpectTest() { + + @Disabled + @Test + fun generateAll() = testDir?.dirsWithFormats(formats).orEmpty().forEach { (p, f) -> + generateExpect(p, f) + } +} \ No newline at end of file -- cgit From 69d189ab28952287cba5e2b24d2ef502959d536c Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Tue, 7 Apr 2020 11:56:11 +0200 Subject: Ignore `.map` files in expect tests --- plugins/base/src/test/kotlin/expect/ExpectGenerator.kt | 2 -- plugins/base/src/test/kotlin/expect/ExpectTest.kt | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/base/src/test/kotlin/expect/ExpectGenerator.kt') diff --git a/plugins/base/src/test/kotlin/expect/ExpectGenerator.kt b/plugins/base/src/test/kotlin/expect/ExpectGenerator.kt index 667fc249..cb3313f9 100644 --- a/plugins/base/src/test/kotlin/expect/ExpectGenerator.kt +++ b/plugins/base/src/test/kotlin/expect/ExpectGenerator.kt @@ -2,8 +2,6 @@ package expect import org.junit.jupiter.api.Disabled import org.junit.jupiter.api.Test -import java.nio.file.Files -import java.nio.file.Path class ExpectGenerator : AbstractExpectTest() { diff --git a/plugins/base/src/test/kotlin/expect/ExpectTest.kt b/plugins/base/src/test/kotlin/expect/ExpectTest.kt index 0423a5b4..8381c828 100644 --- a/plugins/base/src/test/kotlin/expect/ExpectTest.kt +++ b/plugins/base/src/test/kotlin/expect/ExpectTest.kt @@ -7,7 +7,8 @@ class ExpectTest : AbstractExpectTest() { private val ignores: List = listOf( "*.js", "*.css", - "*.svg" + "*.svg", + "*.map" ) @TestFactory -- cgit