AltCover
namespace AltCover
Primitive
[<RequireQualifiedAccess>]
module Primitive = begin
This holds the weakly (“stringly”) typed equivalent of the command line options
CollectOptions
The members correspond to the like-named command line options for AltCover Runner
, except
ExposeReturnCode
being the converse of the dropReturnCode
optionCommandLine
being the material after a --
[<NoComparison>]
type CollectOptions =
{
RecorderDirectory: System.String
WorkingDirectory: System.String
Executable: System.String
LcovReport: System.String
Threshold: System.String
Cobertura: System.String
OutputFile: System.String
CommandLine: seq<System.String>
ExposeReturnCode: bool
SummaryFormat: System.String
Verbosity : System.Diagnostics.TraceLevel
}
with
static member Create : unit -> CollectOptions
end
Create()
returns an instance with all values empty and ExposeReturnCode
is true
.
Fields that are not applicable to the use case or platform are silently ignored.
PrepareOptions
The members correspond to the like-named command line options for AltCover
, except
ExposeReturnCode
being the converse of the dropReturnCode
optionCommandLine
being the material after a --
SingleVisit
being the name for --single
[<NoComparison>]
type PrepareOptions =
{
InputDirectories: seq<System.String>
OutputDirectories: seq<System.String>
SymbolDirectories: seq<System.String>
Dependencies: seq<System.String>
Keys: seq<System.String>
StrongNameKey: System.String
Report: System.String
FileFilter: seq<System.String>
AssemblyFilter: seq<System.String>
AssemblyExcludeFilter: seq<System.String>
TypeFilter: seq<System.String>
MethodFilter: seq<System.String>
AttributeFilter: seq<System.String>
PathFilter: seq<System.String>
AttributeTopLevel: seq<System.String>
TypeTopLevel: seq<System.String>
MethodTopLevel: seq<System.String>
CallContext: seq<System.String>
ReportFormat: System.String
InPlace: bool
Save: bool
ZipFile: bool
MethodPoint: bool
SingleVisit: bool
LineCover: bool
BranchCover: bool
CommandLine: seq<System.String>
ExposeReturnCode: bool
SourceLink: bool
Defer: bool
LocalSource: bool
VisibleBranches: bool
ShowStatic: string
ShowGenerated: bool
Verbosity : System.Diagnostics.TraceLevel
Trivia: bool
OutputRoot : string
Portable : bool
}
with
static member Create : unit -> PrepareOptions
end
Create()
returns an instance that has all empty or false
fields except ExposeReturnCode
, OpenCover
, InPlace
and Save
are true
, and ShowStatic
is -
Fields that are not applicable to the use case or platform are silently ignored.
LoggingOptions
Destinations for user level output at various levels of success. Echo
is for the
command line and usage warninings only.
[<NoComparison; NoEquality>]
type LoggingOptions =
{
Info : System.String -> unit
Warn : System.String -> unit
Failure : System.String -> unit
Echo : System.String -> unit
Verbose : System.String -> unit }
with
static member Create : unit -> LoggingOptions
end
Create()
returns an instance that just discards all strings input. For your particular use, direct message severities appropriately. Echo
is used to echo the synthetic command line in case of inconsistent inputs.