trait NoArgTest extends () => Outcome with TestData
A test function taking no arguments and returning an Outcome
.
For more detail and examples, see the relevant section in the
documentation for trait fixture.FlatSpec
.
- Attributes
- protected
- Source
- TestSuite.scala
- Alphabetic
- By Inheritance
- NoArgTest
- TestData
- Function0
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def apply(): Outcome
Runs the body of the test, returning an
Outcome
.Runs the body of the test, returning an
Outcome
.- Definition Classes
- NoArgTest → Function0
- abstract val configMap: ConfigMap
A
ConfigMap
containing objects that can be used to configure the fixture and test.A
ConfigMap
containing objects that can be used to configure the fixture and test.- Definition Classes
- TestData
- abstract val name: String
The name of this test.
The name of this test.
See the main documentation for this trait for an explanation of the difference between
name
,text
, andscopes
.- Definition Classes
- TestData
- abstract val pos: Option[Position]
- Definition Classes
- TestData
- abstract val scopes: IndexedSeq[String]
An immutable
IndexedSeq
containing the text for any "scopes" enclosing this test, in order from outermost to innermost scope.An immutable
IndexedSeq
containing the text for any "scopes" enclosing this test, in order from outermost to innermost scope.See the main documentation for this trait for an explanation of the difference between
name
,text
, andscopes
. If a test has no surrounding scopes, this field will contain an emptyIndexedSeq
.- Definition Classes
- TestData
- abstract val tags: Set[String]
Tag names for this test.
Tag names for this test.
- Definition Classes
- TestData
- abstract val text: String
The "text" for this test.
The "text" for this test.
See the main documentation for this trait for an explanation of the difference between
name
,text
, andscopes
. If a test has no surrounding scopes, this field will contain the same string asname
.- Definition Classes
- TestData
Concrete Value Members
- def toString(): String
- Definition Classes
- Function0 → AnyRef → Any