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({
You might find the File class useful:
import java.io.File fun main(args: Array) { val content = File("src/main/resources/input.txt").readText() print(content) }