public class TestMethodResult:
Structured result of one method annotated with @Test.
import klyn.unittest
result = TestMethodResult("testAddition")
assert result.passed| Modifier and Type | Member | Description |
|---|---|---|
| public property | durationMsdurationMs as Double = 0.0 |
Method execution duration in milliseconds. |
| public readonly property | failuresfailures as ArrayList<TestFailure> |
Failures raised by this method. |
| public property | namename as String = "" |
Test method name. |
| public readonly property | passedpassed as Boolean: |
Indicates whether this method completed successfully. |
| public property | statusstatus as String = TestStatus.PASSED |
Canonical value from TestStatus. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | TestMethodResultTestMethodResult(
name as String = "",
status as String = TestStatus.PASSED,
durationMs as Double = 0.0
): |
Creates a method result. |