Skip to content

Commit 3bc9143

Browse files
committed
update test re config path
1 parent 7dfd272 commit 3bc9143

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/Runfs.Tests/ScriptTests.fs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@ let thisFileDirectory = __SOURCE_DIRECTORY__
99
let testFile1 = Path.Join(thisFileDirectory, "TestFiles/test1.fs")
1010
let testFile2 = Path.Join(thisFileDirectory, "TestFiles/test2.fs")
1111

12-
let runfsDll = Path.Join(thisFileDirectory, "../../artifacts/bin/runfs/debug/Runfs.dll")
12+
let configPath =
13+
#if DEBUG
14+
"debug"
15+
#else
16+
"release"
17+
#endif
18+
let runfsDll = Path.Join(thisFileDirectory, $"../../artifacts/bin/runfs/{configPath}/Runfs.dll")
1319

1420
[<Fact>]
1521
let ``found runfs executable`` () =
16-
Assert.True(File.Exists runfsDll)
22+
Assert.True(File.Exists runfsDll, $"not found: {runfsDll}")
1723

1824
[<Fact>]
1925
let ``testFile1 runs correctly`` () =

0 commit comments

Comments
 (0)