Skip to content
Snippets Groups Projects

Load execution ID from file

Merged Benedikt Wetzel requested to merge wetzel/spesb:read-exp-id-from-file into theodolite-kotlin
Files
7
@@ -79,7 +79,7 @@ internal class IOHandlerTest {
)
}
// Test the function `getResultFolderString
// Test the function `getResultFolderString`
@Test
@ClearEnvironmentVariable.ClearEnvironmentVariables(
@@ -90,6 +90,16 @@ internal class IOHandlerTest {
assertEquals("",IOHandler().getResultFolderURL())
}
@Test()
@SetEnvironmentVariable.SetEnvironmentVariables(
SetEnvironmentVariable(key = "RESULTS_FOLDER", value = "./src/test/resources"),
SetEnvironmentVariable(key = "CREATE_RESULTS_FOLDER", value = "false")
)
fun testGetResultFolderURL_FolderExist() {
assertEquals("./src/test/resources/", IOHandler().getResultFolderURL())
}
@Test()
@SetEnvironmentVariable.SetEnvironmentVariables(
SetEnvironmentVariable(key = "RESULTS_FOLDER", value = "$FOLDER_URL-0"),
Loading