BuildMaster SDK Reference
Version:

UnitTestActionBase Class

Base class for an Action that executes unit tests.

Syntax

public class UnitTestActionBase : RemoteActionBase, Inedo.Diagnostics.ILogger

Constructors

Name Description
UnitTestActionBase

Initializes a new instance of the UnitTestActionBase class.

Properties

Name Description
GroupName

Gets or sets the unit test group name.

Methods

Name Description
Execute

Executes the Unit Test Action.

RecordResult(string testName, bool testPassed, string testResult, System.DateTime startTime, System.DateTime endTime)

Records the test result in BuildMaster.

RecordResult(string testName, string testStatusCode, string testResult, System.DateTime startTime, System.DateTime endTime)

Records the test result in BuildMaster.

RunTests

Runs a unit test against the target specified in the action. After the test is run, use the RecordResult method to save the test results to the database.