altcover

namespace AltCover

namespace AltCover

module DotNet

[<RequireQualifiedAccess>]
module DotNet = begin
  type ICLIOptions =
    abstract member ForceDelete : bool with get
    abstract member FailFast : bool with get
    abstract member ShowSummary : System.String with get

  [<NoComparison>]
  type CLIOptions =
    | Force of bool
    | Fail of bool
    | Summary of System.String
    | Many of seq<CLIOptions>
    | Abstract of ICLIOptions
    with
      interface ICLIOptions
      member FailFast : bool
      member ForceDelete : bool
      member ShowSummary : System.String
    end

Union type defining general command line arguments for dotnet test use.

vs

Composing the whole command line

    val ImportModuleProperties : (string*string) list


    val GetVersionProperties : (string*string) list
    val ToTestPropertiesList :
      prepare:Abstract.IPrepareOptions ->
        collect:Abstract.ICollectOptions -> options:ICLIOptions -> (string*string) list


    val ToTestArgumentList :
      prepare:Abstract.IPrepareOptions ->
        collect:Abstract.ICollectOptions -> options:ICLIOptions -> string list

    val ToTestArguments :
      prepare:Abstract.IPrepareOptions ->
        collect:Abstract.ICollectOptions -> options:ICLIOptions -> string

The former creates the /p:AltCoverXXX="yyy" elements for a dotnet test invocation as a list of strings, the latter concatenates them, with space separators, into a single command line string.

module Options