aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/expect/ExpectTest.kt
blob: e4123256d99eaa33e70f25b1698758ad9afb9ade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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) }
    }
}