Packagecom.gskinner.performance
Classpublic class PerformanceUnitTest

PerformanceUnitTest provides a simple interface for running unit tests against PerformanceTest. Useful for integrating performance tests into a TDD workflow.



Public Methods
 MethodDefined by
  
PerformanceCheck should not be instantiated.
PerformanceUnitTest
  
checkMethodTestMemory(methodTest:MethodTest, targetMemory:uint):Boolean
[static] Returns true if the specified method test runs without errors and has a memory value less than or equal to the target memory specified.
PerformanceUnitTest
  
checkMethodTestRetainedMemory(methodTest:MethodTest, targetMemory:uint):Boolean
[static] Returns true if the specified method test runs without errors and has a retainedMemory value less than or equal to the target memory specified.
PerformanceUnitTest
  
checkTestSuiteTime(testSuite:TestSuite, targetTime:uint):Boolean
[static] Returns true if the specified test suite runs without errors within the target time specified in ms.
PerformanceUnitTest
  
checkTestTime(test:AbstractTest, targetTime:uint):Boolean
[static] Returns true if the specified test runs without errors within the target time specified in ms.
PerformanceUnitTest
Constructor detail
PerformanceUnitTest()constructor
public function PerformanceUnitTest()

PerformanceCheck should not be instantiated.

Method detail
checkMethodTestMemory()method
public static function checkMethodTestMemory(methodTest:MethodTest, targetMemory:uint):Boolean

Returns true if the specified method test runs without errors and has a memory value less than or equal to the target memory specified. See MethodTest.memory for additional information.

Parameters
methodTest:MethodTest
 
targetMemory:uint

Returns
Boolean
checkMethodTestRetainedMemory()method 
public static function checkMethodTestRetainedMemory(methodTest:MethodTest, targetMemory:uint):Boolean

Returns true if the specified method test runs without errors and has a retainedMemory value less than or equal to the target memory specified. See MethodTestretainedMemory for additional information.

Parameters
methodTest:MethodTest
 
targetMemory:uint

Returns
Boolean
checkTestSuiteTime()method 
public static function checkTestSuiteTime(testSuite:TestSuite, targetTime:uint):Boolean

Returns true if the specified test suite runs without errors within the target time specified in ms.

Parameters
testSuite:TestSuite
 
targetTime:uint

Returns
Boolean
checkTestTime()method 
public static function checkTestTime(test:AbstractTest, targetTime:uint):Boolean

Returns true if the specified test runs without errors within the target time specified in ms.

Parameters
test:AbstractTest
 
targetTime:uint

Returns
Boolean