Test
annotationin packageklyn.unittest
public annotation Test:
Test
Annotation to mark a method as a test case. @property timeout The maximum time in milliseconds that the test is allowed to run. @property expected The exception that is expected to be thrown by the test.
public class MyTestClass:
@Test(timeout=1000, expected=ValueError)
public method testMethod():
# Test code here
Properties
Modifier and Type Member Description
public readonly property expected
expected as Type
No summary.
public readonly property timeout
timeout as ULong
No summary.
Methods
Modifier and Type Member Description
public MyTestClass
MyTestClass(timeout as ULong, expected as Type):
No summary.