class
TestPendingException extends RuntimeException
Instance Constructors
-
new
TestPendingException()
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
fillInStackTrace(): Throwable
-
def
finalize(): Unit
-
def
getCause(): Throwable
-
final
def
getClass(): Class[_]
-
def
getLocalizedMessage(): String
-
def
getMessage(): String
-
def
getStackTrace(): Array[StackTraceElement]
-
def
hashCode(): Int
-
def
initCause(arg0: Throwable): Throwable
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
printStackTrace(arg0: PrintWriter): Unit
-
def
printStackTrace(arg0: PrintStream): Unit
-
def
printStackTrace(): Unit
-
def
setStackTrace(arg0: Array[StackTraceElement]): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from Throwable
Value Members
-
def
fillInStackTrace(): Throwable
-
def
getCause(): Throwable
-
def
getLocalizedMessage(): String
-
def
getMessage(): String
-
def
getStackTrace(): Array[StackTraceElement]
-
def
initCause(arg0: Throwable): Throwable
-
def
printStackTrace(arg0: PrintWriter): Unit
-
def
printStackTrace(arg0: PrintStream): Unit
-
def
printStackTrace(): Unit
-
def
setStackTrace(arg0: Array[StackTraceElement]): Unit
-
def
toString(): String
Inherited from AnyRef
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from Any
Value Members
-
final
def
asInstanceOf[T0]: T0
-
final
def
isInstanceOf[T0]: Boolean
Ungrouped
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
fillInStackTrace(): Throwable
-
def
finalize(): Unit
-
def
getCause(): Throwable
-
final
def
getClass(): Class[_]
-
def
getLocalizedMessage(): String
-
def
getMessage(): String
-
def
getStackTrace(): Array[StackTraceElement]
-
def
hashCode(): Int
-
def
initCause(arg0: Throwable): Throwable
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
printStackTrace(arg0: PrintWriter): Unit
-
def
printStackTrace(arg0: PrintStream): Unit
-
def
printStackTrace(): Unit
-
def
setStackTrace(arg0: Array[StackTraceElement]): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Exception thrown to indicate a test is pending.
A pending test is one that has been given a name but is not yet implemented. The purpose of pending tests is to facilitate a style of testing in which documentation of behavior is sketched out before tests are written to verify that behavior (and often, the before the behavior of the system being tested is itself implemented). Such sketches form a kind of specification of what tests and functionality to implement later.
To support this style of testing, a test can be given a name that specifies one bit of behavior required by the system being tested. The test can also include some code that sends more information about the behavior to the reporter when the tests run. At the end of the test, it can call method
pending
, which will cause it to complete abruptly withTestPendingException
. Because tests in ScalaTest can be designated as pending withTestPendingException
, both the test name and any information sent to the reporter when running the test can appear in the report of a test run. (In other words, the code of a pending test is executed just like any other test.) However, because the test completes abruptly withTestPendingException
, the test will be reported as pending, to indicate the actual test, and possibly the functionality, has not yet been implemented.