Test
annotationin packageklyn.unittest
public annotation 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 |
No summary. |
| public readonly property |
timeout |
No summary. |
Methods
| Modifier and Type |
Member |
Description |
| public |
MyTestClassMyTestClass(timeout as ULong, expected as Type): |
No summary. |