Runs tests on the bootstrapper with the specified file system and reports the results.
- Namespace
- Statiq
.Testing - Containing Type
- I
Bootstrapper Extensions
Syntax
public static Task<BootstrapperTestResult> RunTestAsync(this IBootstrapper bootstrapper, LogLevel throwLogLevel, 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. |
throwLogLevel | LogLevel | The log level at which to throw. |
fileProvider | IFileProvider | The file provider to use. |
Return Value
Type | Description |
---|---|
Task |
Results from running the bootstrapper such as phase outputs and exit code. |