aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/expect/ExpectTest.kt
blob: 8381c8289f78da428a08e507b8ab4fbca87d72d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package expect

import org.junit.jupiter.api.DynamicTest.dynamicTest
import org.junit.jupiter.api.TestFactory

class ExpectTest : AbstractExpectTest() {
    private val ignores: List<String> = listOf(
        "*.js",
        "*.css",
        "*.svg",
        "*.map"
    )

    @TestFactory
    fun expectTest() = testDir?.dirsWithFormats(formats).orEmpty().map { (p, f) ->
        dynamicTest("${p.fileName}-$f") { testOutputWithExcludes(p, f, ignores) }
    }

}