blob: 0423a5b432f44d7d0188ac7224a21888e0040e31 (
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"
)
@TestFactory
fun expectTest() = testDir?.dirsWithFormats(formats).orEmpty().map { (p, f) ->
dynamicTest("${p.fileName}-$f") { testOutputWithExcludes(p, f, ignores) }
}
}
|