You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Coverlet.withDotNetTestOptions seems not to have any effect on the MSBuildParamsProperties field. This happens using .net SDK 3.0.100, and Fake 5.18.2 as a local tool.
This is a weird one, which has me baffled. I don't think there's an obvious howler that I've pulled here, but the workround (below) suggests something very odd going on.
Repro steps
Run this Fake script
#r "paket:
nuget Fake.Core.Target >= 5.18.2
nuget Fake.Core.Environment >= 5.18.2
nuget Fake.Core.Process >= 5.18.2
nuget Fake.DotNet.AssemblyInfoFile >= 5.18.2
nuget Fake.DotNet.Cli >= 5.18.2
nuget Fake.DotNet.Testing.Coverlet >= 5.18.2 //"
open Fake.DotNet
open Fake.DotNet.Testing
let coverletOptions (o : Coverlet.CoverletParams) =
{ o with OutputFormat = Coverlet.OutputFormat.OpenCover
Exclude = [ ("*.Tests", "*")
("*.XTests", "*")
("xunit*", "*")
("Sample*", "*")
("AltCover.Record*", "M*")
("NUnit*", "*")] }
DotNet.TestOptions.Create()
|> Coverlet.withDotNetTestOptions coverletOptions
|> printfn "%A"
do ()
Copying most of the Coverlet.fs source into the space between lines 10 and 12 of the above script and adding Coverlet. where necessary to make it compile.
It's as if something in withMSBuildArguments needs to be in the consuming script, but there's nothing obvious here that I can see that could be causing this behaviour.
Related information
Windows 10 home
Release 5.18.2 (fake-cli as a local tool)
.net core v3.0 (SDK 3.0.100)
the new feature is not usefully functional
The text was updated successfully, but these errors were encountered:
Oh, I think I see what's going on. I'm guessing that the project is compiled with an older F# language version. The list items are added using implicit yield, which means that in F# 4.6 or older they just get ignored...
Description
Coverlet.withDotNetTestOptions
seems not to have any effect on theMSBuildParams
Properties
field. This happens using .net SDK 3.0.100, and Fake 5.18.2 as a local tool.This is a weird one, which has me baffled. I don't think there's an obvious howler that I've pulled here, but the workround (below) suggests something very odd going on.
Repro steps
Run this Fake script
Expected behavior
Output should include
Actual behavior
Instead it looks like
Known workarounds
Copying most of the Coverlet.fs source into the space between lines 10 and 12 of the above script and adding
Coverlet.
where necessary to make it compile.It's as if something in
withMSBuildArguments
needs to be in the consuming script, but there's nothing obvious here that I can see that could be causing this behaviour.Related information
The text was updated successfully, but these errors were encountered: