RunTestAsync(IBootstrapper, IFileProvider) Method
Runs tests on the bootstrapper with the specified file system and reports the results.
Namespace
Statiq.Testing
Containing Type
IBootstrapperExtensions

Syntax

public static Task<BootstrapperTestResult> RunTestAsync(this IBootstrapper bootstrapper, IFileProvider fileProvider = null)

Remarks

This method uses a lock to ensure only a single bootstrapper and engine is executing at a time.

Parameters

Name Type Description
bootstrapper IBootstrapper The bootstrapper.
fileProvider IFileProvider The file provider to use.

Return Value

Type Description
Task<BootstrapperTestResult> Results from running the bootstrapper such as phase outputs and exit code.