TestFailure
classin packageklyn.unittest
public class TestFailure:
TestFailure

Describes one failure raised while compiling or executing a test.

Example
import klyn.unittest

failure = TestFailure("Test failed", "AssertionError", "Expected true", "")
print(failure.message)
Properties
Modifier and Type Member Description
public property errorType
errorType as String = ""
Runtime exception or error type.
public property failureMessage
failureMessage as String = ""
Framework-level description of the failure.
public property message
message as String = ""
Human-readable error message.
public property stackTrace
stackTrace as String = ""
Complete source stack trace when available.
Constructors
Modifier and Type Member Description
public TestFailure
TestFailure( failureMessage as String = "", errorType as String = "", message as String = "", stackTrace as String = "" ):
Creates a failure description.
Methods
Modifier and Type Member Description
public static fromMap
fromMap(data as Map<String, Object>) as TestFailure:
Creates a typed failure from parsed JSON data.
public toMap
toMap() as SortedMap<String, Object>:
Converts this failure to its JSON-compatible representation.