Skip to content

Commit

Permalink
Allow managed control of the output directory in dotnet test
Browse files Browse the repository at this point in the history
 - #199
  • Loading branch information
SteveGilham committed Mar 13, 2024
1 parent d6c578f commit 0536248
Show file tree
Hide file tree
Showing 21 changed files with 447 additions and 424 deletions.
14 changes: 12 additions & 2 deletions AltCover.Api.Tests/FSApiTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1183,9 +1183,9 @@ module FSApiTests =

// not input and output directories (inplace now allowed)
testWithFallback
<@ (prepareFragments) |> List.length = ((prepareNames |> List.length) - 2) @>
<@ (prepareFragments) |> List.length = ((prepareNames |> List.length) - 1) @>
(prepareFragments |> List.length)
(Is.EqualTo((prepareNames |> List.length) - 2))
(Is.EqualTo((prepareNames |> List.length) - 1))

let collect =
doc.Descendants()
Expand Down Expand Up @@ -1305,6 +1305,16 @@ module FSApiTests =
DotNet.ToTestArguments prep coll combined = "/p:AltCover=\"true\" /p:AltCoverReportFormat=\"OpenCover\" /p:AltCoverShowStatic=\"-\" /p:AltCoverShowSummary=\"R\" /p:AltCoverForce=\"true\" /p:AltCoverFailFast=\"true\""
@>

let tprep =
TypeSafe.PrepareOptions.Create()

let prep2 = AltCover.PrepareOptions.TypeSafe tprep

test
<@
DotNet.ToTestArguments prep2 coll combined = "/p:AltCover=\"true\" /p:AltCoverReportFormat=\"OpenCover\" /p:AltCoverShowStatic=\"-\" /p:AltCoverShowSummary=\"R\" /p:AltCoverForce=\"true\" /p:AltCoverFailFast=\"true\""
@>

let pprep2 = Options.Prepare()
test <@ (pprep2.WhatIf()).Command = [ "--save" ] @>

Expand Down
Loading

0 comments on commit 0536248

Please sign in to comment.