com.zegreatrob.jsmints.plugins.wdiotest.WdioTemplate.kt Maven / Gradle / Ivy
The newest version!
package com.zegreatrob.jsmints.plugins.wdiotest
import org.gradle.api.GradleException
object WdioTemplate {
val wdioTemplate get() = loadResource("wdio.conf.mjs")
val htmlReporterPlugin get() = loadResource("html-reporter.mjs")
val chromePlugin get() = loadResource("chrome.mjs")
val screenshotsOnFailurePlugin get() = loadResource("screenshots-on-failure.mjs")
val timelineReporterPlugin get() = loadResource("timeline-reporter.mjs")
val allureReporterPlugin get() = loadResource("allure-reporter.mjs")
private fun loadResource(resourceName: String) = (
this::class.java
.getResource("/com/zegreatrob/jsmints/plugins/wdiotest/$resourceName")
?: throw GradleException("Could not load $resourceName")
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy