TestClass
annotationin packageklyn.unittest
public annotation TestClass
TestClass

Annotation to mark a class as a test class.

Example
@TestClass(
    category="Unit Tests",
    description="This is a unit test class.",
    timeout=2000
)
public class MyTestClass:
    @Test(timeout=1000, expected=ValueException)
    public testMethod():
        # Test code here
Properties
Modifier and Type Member Description
public readonly property category
category as String = null
Optional category used to group the test class.
public readonly property description
description as String = null
Optional human-readable description of the test class.
public readonly property timeout
timeout as ULong = 0u
Maximum execution time for the complete test-class lifecycle.
Constructors
Modifier and Type Member Description
public TestClass
TestClass( category as String = null, description as String = null, timeout as ULong = 0u )
Creates test-class metadata.