Test

final class Test(val name: String, val body: () => Future[Any], val tags: Set[Tag], val location: Location) extends Serializable

Metadata about a single test case.

Value parameters:
body

the function to be evaluated for this test case.

location

the file and line number where this test was defined.

tags

the annotated tags for this test case.

trait Serializable
class Object
trait Matchable
class Any

Value members

Constructors

def this(name: String, body: () => Future[Any])(implicit loc: Location)

Concrete methods

def annotations: Array[Annotation]
override def equals(obj: Any): Boolean
Definition Classes
Any
override def hashCode(): Int
Definition Classes
Any
def tag(newTag: Tag): Test
override def toString(): String
Definition Classes
Any
def withBody(newBody: () => Future[Any]): Test
def withBodyMap(newBody: Future[Any] => Future[Any]): Test
def withLocation(newLocation: Location): Test
def withName(newName: String): Test
def withTags(newTags: Set[Tag]): Test

Concrete fields

val body: () => Future[Any]
val name: String
val tags: Set[Tag]