Summary
Defines a
ITask
that invokes the Pester powershell unit testing framework on a given set of test files.
- Namespace
- NBuildKit
.MsBuild .Tasks .Testing - Base Types
graph TD
Base0["PowershellCommandLineToolTask"]-->Type
click Base0 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Core/PowershellCommandLineToolTask"
Base1["CommandLineToolTask"]-->Base0
click Base1 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Core/CommandLineToolTask"
Base2["BaseTask"]-->Base1
click Base2 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Core/BaseTask"
Base3["Task"]-->Base2
Type["InvokePesterOnFile"]
class Type type-node
Syntax
public sealed class InvokePesterOnFile : PowershellCommandLineToolTask
Constructors
Name | Summary |
---|---|
InvokePesterOnFile |
Initializes a new instance of the InvokePesterOnFile class.
|
InvokePesterOnFile |
Initializes a new instance of the InvokePesterOnFile class.
|
Properties
Name | Value | Summary |
---|---|---|
DefaultDataHandler | Data |
Gets the event handler that processes data from the data stream, or standard output stream, of
the command line application.By default logs a message for each output.
Inherited from CommandLineToolTask
|
DefaultErrorHandler | Data |
Gets the event handler that processes data from the data stream, or standard output stream, of
the command line application.By default logs a message for each output.
Inherited from Powershell
|
ErrorInformation | ITaskItem[] |
Gets or sets the collection containing the error codes for the task.
Inherited from BaseTask
|
IgnoreErrors | bool |
Gets or sets a value indicating whether error should be ignored.
Inherited from Powershell
|
Log |
bool |
Gets or sets a value indicating whether the environment variables for the process should be logged.
Inherited from CommandLineToolTask
|
PesterModulePath | ITaskItem |
Gets or sets the full path to the Pester module.
|
PowershellExePath | ITaskItem |
Gets or sets the full path to the Powershell executable.
Inherited from Powershell
|
ReportFile | ITaskItem |
Gets or sets the full path to the report file.
|
TemporaryDirectory | ITaskItem |
Gets or sets the full path to a directory that can be used to write temporary files.
|
TestArguments | ITaskItem[] |
Gets or sets the collection containing the test arguments.
|
TestFile | ITaskItem |
Gets or sets the full path to the file containing the Pester tests.
|
Methods
Name | Value | Summary |
---|---|---|
ErrorCodeById |
string |
Returns the error code for the given ID.
Inherited from BaseTask
|
Execute |
bool | |
GetAbsolutePath |
string |
Returns the absolute path for the given path item.
Inherited from BaseTask
|
GetAbsolutePath |
string |
Returns the absolute path for the given path item.
Inherited from BaseTask
|
GetAbsolutePath |
string |
Returns the absolute path for the given path item.
Inherited from BaseTask
|
GetFullToolPath |
string |
Returns the most complete path for the given executable tool. May return just the name of the tool if the tool path is found via the
PATH environment variable.
Inherited from CommandLineToolTask
|
GetFullToolPath |
string |
Returns the most complete path for the given executable tool. May return just the name of the tool if the tool path is found via the
PATH environment variable.
Inherited from CommandLineToolTask
|
Invoke |
int |
Invokes the command line tool at the given path with the given arguments.
Inherited from CommandLineToolTask
|
Invoke |
int |
Invokes the command line tool at the given path with the given arguments.
Inherited from CommandLineToolTask
|
Invoke |
void |
Executes a powershell script.
Inherited from Powershell
|
InvokePowershellFile |
void |
Executes a powershell script.
Inherited from Powershell
|
Update |
void |
Updates the environment variables for the application prior to execution.
Inherited from CommandLineToolTask
|
Verbosity |
string |
Gets the verbosity that the current MsBuild instance is running at.
Inherited from BaseTask
static
|