C# Class Bari.Core.Commands.Test.TestCommand

Implements 'test' command, which builds and executes test projects
Inheritance: ICommand
Datei anzeigen Open project: vigoo/bari

Public Methods

Method Description
Run ( Suite suite, string parameters ) : bool

Runs the command

TestCommand ( IBuildContextFactory buildContextFactory, [ targetRoot, IEnumerable projectBuilders, IEnumerable testRunners, IUserOutput output, ICommandTargetParser targetParser, ICoreBuilderFactory coreBuilderFactory ) : System

Constructs the test command

Private Methods

Method Description
IsRunnerEnabled ( Tests tests, ITestRunner runner ) : bool
RunTests ( Tests tests, IEnumerable projects, IEnumerable buildOutputs ) : bool
RunWithProjects ( IEnumerable projects, bool dumpMode, bool dumpDepsMode ) : IEnumerable

Method Details

Run() public method

Runs the command
public Run ( Suite suite, string parameters ) : bool
suite Suite The current suite model the command is applied to
parameters string Parameters given to the command (in unprocessed form)
return bool

TestCommand() public method

Constructs the test command
public TestCommand ( IBuildContextFactory buildContextFactory, [ targetRoot, IEnumerable projectBuilders, IEnumerable testRunners, IUserOutput output, ICommandTargetParser targetParser, ICoreBuilderFactory coreBuilderFactory ) : System
buildContextFactory IBuildContextFactory Factory interface to create build contexts
targetRoot [ Target file system directory
projectBuilders IEnumerable Available project builders
testRunners IEnumerable Available test runners
output IUserOutput Output interface for the dependency dump functionality
targetParser ICommandTargetParser User-given target string parser
coreBuilderFactory ICoreBuilderFactory Factory for core builder types
return System