Note: This is the migration API reference for FAKE 5. The new (modularized) API documentation can be found here. If the API is already migrated you can check here if exists in a module. More information regarding the migration can be found here

OBSOLETE

This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.

ProcessTestRunner

Allows to execute processes as unit tests.

Nested types and modules

TypeDescription
ProcessTestRunnerParams
OBSOLETE

This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.

The ProcessTestRunner parameter type.

Functions and values

Function or valueDescription
ProcessTestRunnerDefaults
Signature: ProcessTestRunnerParams
Attributes:
[<Obsolete("This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.")>]
OBSOLETE

This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.

The ProcessTestRunner defaults.

RunConsoleTest parameters fileName args
Signature: parameters:ProcessTestRunnerParams -> fileName:string -> args:string -> string option
Attributes:
[<Obsolete("This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.")>]
OBSOLETE

This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.

Runs the given process and returns the process result.

runConsoleTests parameters processes
Signature: parameters:ProcessTestRunnerParams -> processes:seq<string * string> -> seq<string * string * string>
Attributes:
[<Obsolete("This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.")>]
OBSOLETE

This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.

Runs the given processes and returns the process result messages.

RunConsoleTests setParams processes
Signature: setParams:(ProcessTestRunnerParams -> ProcessTestRunnerParams) -> processes:seq<string * string> -> unit
Attributes:
[<Obsolete("This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.")>]
OBSOLETE

This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.

Runs the given processes and returns the process results.

Parameters

  • setParams - Function used to manipulate the default parameter value.
  • processes - Sequence of one or more filenames and arguments to run.

Sample usage

1: 
2: 
3: 
4: 
5: 
Target "Test" (fun _ ->
    ["process1.exe","argument1"
     "process2.exe","argument2"]
      |> RunConsoleTests (fun p -> {p with TimeOut = TimeSpan.FromMinutes 1. })
)