This AI is still in early stages of development.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Defines the mode in which a unit test is run...

 

Test.any( )

Indicates that a test may create zero or more results, and the number of results does not affect the overall test success.

This is the default for tests that do not specify a testMode.

Test.expect( n )

Indicate that the current test is expected to generate n test results. If the test does not generate that many results, the test will fail.

Test.until( n )

Test.until( ) indicates that a a test is split in to more than one unit and is used for asynchronous testing. The number n indicates how many results are required to complete the test.

Results can be provided by the current Test.until( ) and subsequent Test.append( ) tests.

Test.duration( gameSeconds )

Test.duration( ) indicates that a test should run for a specific amount of time and gather any results during that time. The number gameSeconds defines how many game seconds (which are affected by game speed) results will be gathered for.

Results can be provided by the current Test.duration( ) and subsequent Test.append( ) tests.

Test.append( testName )

Test.append( ) indicates that test is a continuation of a specific Test.until( ) or a Test.duration( ) test that has a name of testName.

 

 

  • No labels