Commit 784723ff authored by Igor Demin's avatar Igor Demin

Fix screenshot tests

parent 17e2ae57
...@@ -14,7 +14,8 @@ import javax.imageio.ImageIO ...@@ -14,7 +14,8 @@ import javax.imageio.ImageIO
// TODO fix colors on macOS // TODO fix colors on macOS
class ScreenshotTestRule(private val robot: Robot) : TestRule { class ScreenshotTestRule(private val robot: Robot) : TestRule {
private lateinit var testIdentifier: String private lateinit var testIdentifier: String
private val screenshotsDir = File(System.getProperty("skiko.test.screenshots.dir")!!) private val subDir = if (hostOs == OS.MacOS) "macos" else "windows_linux"
private val screenshotsDir = File(System.getProperty("skiko.test.screenshots.dir")!!).resolve(subDir)
override fun apply(base: Statement, description: Description): Statement { override fun apply(base: Statement, description: Description): Statement {
return object : Statement() { return object : Statement() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment