Skip to content
This repository was archived by the owner on Sep 26, 2020. It is now read-only.

Commit 577aadc

Browse files
Change integration test runner
1 parent 5a1afa0 commit 577aadc

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

tests/Forge.IntegrationTests/Forge.IntegrationTests.fsproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
<Name>Forge.ProjectSystem.fsproj</Name>
4747
<Project>{9029be0f-a72c-4281-9fd1-aa15f5722306}</Project>
4848
</ProjectReference>
49+
<ProjectReference Include="..\..\src\Forge\Forge.fsproj">
50+
<Name>Forge.fsproj</Name>
51+
<Project>{147b0e3c-c669-4666-8fbc-7f77cac2ff36}</Project>
52+
</ProjectReference>
4953
</ItemGroup>
5054
<ItemGroup>
5155
<Compile Include="Helpers.fs" />

tests/Forge.IntegrationTests/Helpers.fs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ let initTest dir args =
1313
let path = cwd </> ".." </> "Forge.exe"
1414
let dir = cwd </> dir
1515
Forge.FileHelper.cleanDir dir
16+
System.Environment.CurrentDirectory <- dir
1617
args |> List.iter (fun a ->
17-
if isMono then
18-
run "mono" (path + " " + a + " --no-prompt") dir
19-
else
20-
run path (a + " --no-prompt") dir)
18+
let a = a + " --no-prompt"
19+
Forge.App.main (a.Split ' ') |> ignore)
2120

2221
let getPath file =
2322
cwd </> file

0 commit comments

Comments
 (0)