I want to write a Spek test in Kotlin. The test should read an HTML file from the src/test/resources folder. How to do it?
src/test/resources
class MySpec : Spek({
Using Google Guava library Resources class:
import com.google.common.io.Resources; val fileContent: String = Resources.getResource("/html/file.html").readText()