C# 클래스 NUnit.Framework.Api.NUnitTestAssemblyRunner

Implementation of ITestAssemblyRunner
상속: ITestAssemblyRunner
파일 보기 프로젝트 열기: nunit/nunit 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CountTestCases int
CreateTestExecutionContext void
GetLevelOfParallelism int
OnRunCompleted void
PauseBeforeRun void
StartRun void

공개 메소드들

메소드 설명
CountTestCases ( ITestFilter filter ) : int

Count Test Cases using a filter

Load ( Assembly assembly, object>.IDictionary settings ) : ITest

Loads the tests found in an Assembly

Load ( string assemblyName, object>.IDictionary settings ) : ITest

Loads the tests found in an Assembly

NUnitTestAssemblyRunner ( ITestAssemblyBuilder builder ) : System

Initializes a new instance of the NUnitTestAssemblyRunner class.

Run ( ITestListener listener, ITestFilter filter ) : ITestResult

Run selected tests and return a test result. The test is run synchronously, and the listener interface is notified as it progresses.

RunAsync ( ITestListener listener, ITestFilter filter ) : void

Run selected tests asynchronously, notifying the listener interface as it progresses.

RunAsync is a template method, calling various abstract and virtual methods to be overridden by derived classes.

StopRun ( bool force ) : void

Signal any test run that is in process to stop. Return without error if no test is running.

WaitForCompletion ( int timeout ) : bool

Wait for the ongoing run to complete.

비공개 메소드들

메소드 설명
CountTestCases ( ITest test, ITestFilter filter ) : int
CreateTestExecutionContext ( ITestListener listener ) : void

Create the initial TestExecutionContext used to run tests

GetLevelOfParallelism ( ) : int
OnRunCompleted ( object sender, EventArgs e ) : void

Handle the the Completed event for the top level work item

PauseBeforeRun ( ) : void
StartRun ( ITestListener listener ) : void

Initiate the test run.

메소드 상세

CountTestCases() 공개 메소드

Count Test Cases using a filter
public CountTestCases ( ITestFilter filter ) : int
filter ITestFilter The filter to apply
리턴 int

Load() 공개 메소드

Loads the tests found in an Assembly
public Load ( Assembly assembly, object>.IDictionary settings ) : ITest
assembly System.Reflection.Assembly The assembly to load
settings object>.IDictionary Dictionary of option settings for loading the assembly
리턴 ITest

Load() 공개 메소드

Loads the tests found in an Assembly
public Load ( string assemblyName, object>.IDictionary settings ) : ITest
assemblyName string File name of the assembly to load
settings object>.IDictionary Dictionary of option settings for loading the assembly
리턴 ITest

NUnitTestAssemblyRunner() 공개 메소드

Initializes a new instance of the NUnitTestAssemblyRunner class.
public NUnitTestAssemblyRunner ( ITestAssemblyBuilder builder ) : System
builder ITestAssemblyBuilder The builder.
리턴 System

Run() 공개 메소드

Run selected tests and return a test result. The test is run synchronously, and the listener interface is notified as it progresses.
public Run ( ITestListener listener, ITestFilter filter ) : ITestResult
listener ITestListener Interface to receive EventListener notifications.
filter ITestFilter A test filter used to select tests to be run
리턴 ITestResult

RunAsync() 공개 메소드

Run selected tests asynchronously, notifying the listener interface as it progresses.
RunAsync is a template method, calling various abstract and virtual methods to be overridden by derived classes.
public RunAsync ( ITestListener listener, ITestFilter filter ) : void
listener ITestListener Interface to receive EventListener notifications.
filter ITestFilter A test filter used to select tests to be run
리턴 void

StopRun() 공개 메소드

Signal any test run that is in process to stop. Return without error if no test is running.
public StopRun ( bool force ) : void
force bool If true, kill any tests that are currently running
리턴 void

WaitForCompletion() 공개 메소드

Wait for the ongoing run to complete.
public WaitForCompletion ( int timeout ) : bool
timeout int Time to wait in milliseconds
리턴 bool