Dashboard > GreenPepper Server > ... > MSBuild > MSBuild - GreenPepperTask
 GreenPepperThis Space is not registered in GreenPepper Server.

<GreenPepperTask>

Be Careful

Available since GreenPepper 2.5.1

MSBuild 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
Repository ITaskItem The repository to fetch specifications from True
Output string The path to produce reports (defaults to current directory) False
OutputType 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). Default value is false 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
SystemUnderDevelopment ITaskItem The system under development to execute False
Assemblies ITaskItem[] List of assemblies to use for execution. False
StopOnFirstFailure bool Stop the execution of the specification on the first failure. The default is false False
ContinueOnError bool It determines if the build should continue on task failure or if it must stop the build process. The default is true see MSBuild task False
Condition bool The task will be executed only if condition match see MSBuild task False

Elements

<Repository>

Attribute Type Description Required
Include Class Repository full class name True
Sub-element Type Description Required
Arguments Argument A set of repository arguments True
<Arguments>
Sub-element Type Description Required
Argument string repository argument like the Server Url True
</Arguments>

</Repository>

<Assemblies>

Attribute Type Description Required
Include string Assembly path True

</Assemblies>

<SystemUnderDevelopment>

Attribute Type Description Required
Include Class SystemUnderDevelopment full class name True
Sub-element Type Description Required
Arguments Argument A set of system under development arguments False
<Arguments>
Sub-element Type Description Required
Argument string system under developement argument True
</Arguments>

</SystemUnderDevelopment>

Requirements

Assembly: GreenPepper.Extensions

Examples

GreenPepperRepository

<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <UsingTask TaskName="GreenPepper.MSBuild.GreenPepperTask" AssemblyFile="Lib\GreenPepper.Extensions.dll"/>

    <ItemGroup>
        <Assemblies Include="bin\MyFixtures.dll" />
        <Repository Include="Greenpepper.Repositories.GreenPepperRepository">
            <Arguments>
                <Argument><![CDATA[http://www.greenpeppersoftware.com/confluence/rpc/xmlrpc?handler=greenpepper1&sut=GreenPepperOpen - Core DotNet&includeStyle=false&postExecutionResult=${greenpepper.postExecutionResult}#GREENPEPPER]]></Argument>
            </Arguments>
        </Repository>
        <SystemUnderDevelopment Include="GreenPepper.Fixtures.MyCustomSystemUnderDevelopment">
            <Arguments>
                <Argument>foo</Argument>
            </Arguments>
        </SystemUnderDevelopment>
    </ItemGroup>

    <Target Name="GreenPepper">
        <GreenPepperTask
                Suite="true"
                Input="GreenPepper Confluence-GREENPEPPER"
                Output="GreenPepperReports"
                OutputType="plain"
                ContinueOnError="false"
                Repository="@(Repository)"
                SystemUnderDevelopment="@(SystemUnderDevelopment)"
                Assemblies="@(Assemblies)"></GreenPepperTask>
    </Target>
</Project>

FileSystemRepository

<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <UsingTask TaskName="GreenPepper.MSBuild.GreenPepperTask" AssemblyFile="Lib\GreenPepper.Extensions.dll"/>

    <ItemGroup>
        <Assemblies Include="bin\MyFixtures.dll" />
        <Repository Include="Greenpepper.Repositories.FileSystemRepository">
            <Arguments>
                <Argument><![CDATA[C:\dev\GreenPepperFreezedSpec\GreenPepper .Net Seeds]]></Argument>
            </Arguments>
        </Repository>
        <SystemUnderDevelopment Include="GreenPepper.Fixtures.MyCustomSystemUnderDevelopment">
            <Arguments>
                <Argument>foo</Argument>
            </Arguments>
        </SystemUnderDevelopment>
    </ItemGroup>

    <Target Name="GreenPepper">
        <GreenPepperTask
                Suite="true"
                Input="GreenPepper Confluence-GREENPEPPER"
                Output="GreenPepperReports"
                OutputType="plain"
                ContinueOnError="false"
                Repository="@(Repository)"
                SystemUnderDevelopment="@(SystemUnderDevelopment)"
                Assemblies="@(Assemblies)"></GreenPepperTask>
    </Target>
</Project>
© Pyxis Technologies Inc.. All rights reserved. GreenPepper® is registered to Pyxis Technologies inc.