Skip to content

Commit

Permalink
Delete the obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGilham committed Jul 21, 2024
1 parent b5fafb3 commit 292dd83
Showing 1 changed file with 1 addition and 39 deletions.
40 changes: 1 addition & 39 deletions Build/targets.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2155,44 +2155,6 @@ module Targets =
printfn "UnitTestWithAltCover caught %A" x
reraise ()

printfn "Instrument the net472 Recorder tests"

let recorder472Dir =
Path.getFullName "_Binaries/AltCover.Recorder.Tests/Debug+AnyCPU/net472"

let recorder472Report =
reports @@ "Recorder472TestWithAltCover.xml"

let prep =
AltCover.PrepareOptions.Primitive(
{ Primitive.PrepareOptions.Create() with
Report = recorder472Report
OutputDirectories = [| "./__RecorderTestWithAltCover" |]
StrongNameKey = shadowkeyfile
ReportFormat = "NCover"
InPlace = false
Save = false }
|> AltCoverFilter
)
|> AltCoverCommand.Prepare

{ AltCoverCommand.Options.Create prep with
ToolPath = altcover
ToolType = frameworkAltcover
WorkingDirectory = recorder472Dir }
|> AltCoverCommand.run

printfn "Execute the net472 Recorder tests"

let rec4Args =
[ "--noheader"
"--work=."
"--result=./_Reports/Recorder4TestWithAltCoverReport.xml"
Path.getFullName
"_Binaries/AltCover.Recorder.Tests/Debug+AnyCPU/net472/__RecorderTestWithAltCover/AltCover.Recorder.Tests.dll" ]

Actions.Run (nunitConsole, ".", rec4Args) "Recorder net472 NUnit failed"

ReportGenerator.generateReports
(fun p ->
{ p with
Expand All @@ -2201,7 +2163,7 @@ module Targets =
[ ReportGenerator.ReportType.Html
ReportGenerator.ReportType.XmlSummary ]
TargetDir = "_Reports/_UnitTestWithAltCover" })
[ altReport; recorder472Report ]
[ altReport ]

uncovered @"_Reports/_UnitTestWithAltCover/Summary.xml"
|> List.map fst
Expand Down

0 comments on commit 292dd83

Please sign in to comment.