@@ -642,30 +642,30 @@ Target.create "HostDocs" (fun _ ->
642642 System.Console.ReadKey() |> ignore
643643)
644644
645- let runExpecto dllPath resultsXml =
645+ let runExpecto workDir dllPath resultsXml =
646646 let processResult =
647- DotNet.exec ( dtntWorkDir root ) ( sprintf " %s " dllPath) " --summary"
647+ DotNet.exec ( dtntWorkDir workDir ) ( sprintf " %s " dllPath) " --summary"
648648
649649 if processResult.ExitCode <> 0 then failwithf " Tests in %s failed." ( Path.GetFileName dllPath)
650- Trace.publish ( ImportData.Nunit NunitDataVersion.Nunit) resultsXml
650+ Trace.publish ( ImportData.Nunit NunitDataVersion.Nunit) ( workDir </> resultsXml)
651651
652652Target.create " DotNetCoreIntegrationTests" ( fun _ ->
653653 cleanForTests()
654654
655- runExpecto " src/test/Fake.Core.IntegrationTests/bin/Release/netcoreapp2.1/Fake.Core.IntegrationTests.dll" " Fake_Core_IntegrationTests.TestResults.xml"
655+ runExpecto root " src/test/Fake.Core.IntegrationTests/bin/Release/netcoreapp2.1/Fake.Core.IntegrationTests.dll" " Fake_Core_IntegrationTests.TestResults.xml"
656656)
657657
658658Target.create " TemplateIntegrationTests" ( fun _ ->
659659 let targetDir = srcDir </> " test" </> " Fake.DotNet.Cli.IntegrationTests"
660- runExpecto " bin/Release/netcoreapp2.1/Fake.DotNet.Cli.IntegrationTests.dll" ( targetDir </> " Fake_DotNet_Cli_IntegrationTests.TestResults.xml" )
660+ runExpecto targetDir " bin/Release/netcoreapp2.1/Fake.DotNet.Cli.IntegrationTests.dll" " Fake_DotNet_Cli_IntegrationTests.TestResults.xml"
661661)
662662
663663Target.create " DotNetCoreUnitTests" ( fun _ ->
664664 // dotnet run -p src/test/Fake.Core.UnitTests/Fake.Core.UnitTests.fsproj
665- runExpecto " src/test/Fake.Core.UnitTests/bin/Release/netcoreapp2.1/Fake.Core.UnitTests.dll" ( " Fake_Core_UnitTests.TestResults.xml" )
665+ runExpecto root " src/test/Fake.Core.UnitTests/bin/Release/netcoreapp2.1/Fake.Core.UnitTests.dll" ( " Fake_Core_UnitTests.TestResults.xml" )
666666
667667 // dotnet run --project src/test/Fake.Core.CommandLine.UnitTests/Fake.Core.CommandLine.UnitTests.fsproj
668- runExpecto " src/test/Fake.Core.CommandLine.UnitTests/bin/Release/netcoreapp2.1/Fake.Core.CommandLine.UnitTests.dll" ( " Fake_Core_CommandLine_UnitTests.TestResults.xml" )
668+ runExpecto root " src/test/Fake.Core.CommandLine.UnitTests/bin/Release/netcoreapp2.1/Fake.Core.CommandLine.UnitTests.dll" ( " Fake_Core_CommandLine_UnitTests.TestResults.xml" )
669669)
670670
671671Target.create " BootstrapTestDotNetCore" ( fun _ ->
0 commit comments