Watson Developer Cloud Unity SDK  1.0.0
The Unity SDK uses the Watson Developer Cloud services, a collection of REST APIs and SDKs that use cognitive computing to solve complex problems.
IBM.Watson.DeveloperCloud.Editor.UnitTestManager Class Reference

This class implements a UI using OnGUI and allows the user to run a UnitTest by clicking on a button. Additionally, it handles running any number of unit tests. More...

Inheritance diagram for IBM.Watson.DeveloperCloud.Editor.UnitTestManager:

Public Member Functions

delegate void OnTestsComplete ()
 
void QueueTest (Type test, bool run=false)
 Queue test by Type to run. More...
 
void QueueTests (Type[] tests, bool run=false)
 
void RunTests ()
 Start running all queued tests. More...
 

Static Public Attributes

static string ProjectToTest = null
 

Properties

static UnitTestManager Instance [get]
 Returns the instance of the UnitTestManager. More...
 
int TestsFailed [get]
 Number of tests that have failed. More...
 
int TestsComplete [get]
 Number of tests that have completed. More...
 
bool QuitOnTestsComplete [get, set]
 If true, then the editor will exit with an error code once the last test is completed. More...
 
OnTestsComplete OnTestCompleteCallback [get, set]
 This callback is invoked when all queued tests have been completed. More...
 

Detailed Description

This class implements a UI using OnGUI and allows the user to run a UnitTest by clicking on a button. Additionally, it handles running any number of unit tests.

Member Function Documentation

delegate void IBM.Watson.DeveloperCloud.Editor.UnitTestManager.OnTestsComplete ( )
void IBM.Watson.DeveloperCloud.Editor.UnitTestManager.QueueTest ( Type  test,
bool  run = false 
)
inline

Queue test by Type to run.

Parameters
testThe type of the UnitTest to run.
runIf true, then the test co-routine will be started after queueing.
void IBM.Watson.DeveloperCloud.Editor.UnitTestManager.QueueTests ( Type[]  tests,
bool  run = false 
)
inline
void IBM.Watson.DeveloperCloud.Editor.UnitTestManager.RunTests ( )
inline

Start running all queued tests.

Member Data Documentation

string IBM.Watson.DeveloperCloud.Editor.UnitTestManager.ProjectToTest = null
static

Property Documentation

UnitTestManager IBM.Watson.DeveloperCloud.Editor.UnitTestManager.Instance
staticget

Returns the instance of the UnitTestManager.

OnTestsComplete IBM.Watson.DeveloperCloud.Editor.UnitTestManager.OnTestCompleteCallback
getset

This callback is invoked when all queued tests have been completed.

bool IBM.Watson.DeveloperCloud.Editor.UnitTestManager.QuitOnTestsComplete
getset

If true, then the editor will exit with an error code once the last test is completed.

int IBM.Watson.DeveloperCloud.Editor.UnitTestManager.TestsComplete
get

Number of tests that have completed.

int IBM.Watson.DeveloperCloud.Editor.UnitTestManager.TestsFailed
get

Number of tests that have failed.


The documentation for this class was generated from the following file: