<greenpepper> task
NAnt task that executes GreenPepper specifications.
Parameters
| Attribute |
Type |
Description |
Required |
| input |
string |
The specification to use as input, for a suite this is the GreenPepper UID that you can find in your GreenPeppper Confluence's Space Registration page |
True |
| output |
directory |
The path to produce reports (defaults to current directory) |
True |
| output-type |
string |
The output type of report (defaults to plain) |
False |
| suite |
bool |
It runs a suite rather than a single test (output must refer to a directory). |
False |
| appconfig |
string |
The application configuration file to use for the GreenPepper test domain. If none specified, will try all assemblies to see if there is a corresponding .config (only the first one will be use) |
False |
| failonerror |
bool |
It determines if task failure stops the build or if it is just reported. The default is true. |
False |
| if |
bool |
If true, the task is executed; otherwise, it is skipped. The default is true. |
False |
| unless |
bool |
Opposite of if. If false, the task is executed; otherwise, it is skipped. The default is false. |
False |
| verbose |
bool |
It determines whether the task should report detailed build log messages. The default is false. |
False |
| stopOnFirstFailure |
bool |
Stop the execution of the specification on the first failure. The default is false. |
False |
Nested elements:
<assembly>
List of assemblies to use for execution.
</assembly>
<systemUnderDevelopment>
The system under development to execute.
It defines the system under development.
Parameters
| Attribute |
Type |
Description |
Required |
| class |
string |
The class name of the system under development to instanciate. The default value is GreenPepper.Fixtures.PlainOldSystemUnderDevelopment. |
False |
Nested elements:
<arguments>
List of arguments for the system under development.
It represents an element for which the XML is processed by the parent task or type.
</arguments>
</systemUnderDevelopment>
<repository>
The repository to fetch specifications from.
It defines the repository.
Parameters
| Attribute |
Type |
Description |
Required |
| class |
string |
The class name of the repository to instanciate. Default is Greenpepper.Repositories.FileSystemRepository. |
False |
Nested elements:
<arguments>
List of arguments for the repository like Confluence space username and password for the GreenPepperRepository.
It represents an element for which the XML is processed by the parent task or type.
</arguments>
</repository>
<section>
The section to filter execution.
It defines a section to filter.
Nested elements:
<include>
List of sections to filter execution.
It represents an element for which the XML is processed by the parent task or type.
</include>
</section>
Requirements
Assembly: GreenPepper.Extensions ()
Examples
With the FileSystemRepository:
With the GreenPepper repository (note the CDATA for the URL):