interface SpecBody : TestContainer
Author
Ranie Jade Ramiso
Since
1.0
| action |
abstract fun action(description: String, pending: Pending = Pending.No, body: ActionBody.() -> Unit): Unit |
| afterEachTest |
abstract fun afterEachTest(callback: () -> Unit): Unit |
| afterGroup |
abstract fun afterGroup(callback: () -> Unit): Unit |
| beforeEachTest |
abstract fun beforeEachTest(callback: () -> Unit): Unit |
| beforeGroup |
abstract fun beforeGroup(callback: () -> Unit): Unit |
| group |
abstract fun group(description: String, pending: Pending = Pending.No, body: SpecBody.() -> Unit): Unit |
| memoized |
abstract fun <T> memoized(mode: CachingMode = CachingMode.TEST, factory: () -> T): LifecycleAware<T> |
| test |
abstract fun test(description: String, pending: Pending = Pending.No, body: TestBody.() -> Unit): Unit |
| context |
fun SpecBody.context(description: String, body: SpecBody.() -> Unit): Unit
Creates a group. |
| describe |
fun SpecBody.describe(description: String, body: SpecBody.() -> Unit): Unit
Creates a group. |
| given |
fun SpecBody.given(description: String, body: SpecBody.() -> Unit): Unit
Creates a group. |
| it |
fun TestContainer.it(description: String, body: TestBody.() -> Unit): Unit
Creates a test. |
| on |
fun SpecBody.on(description: String, body: ActionBody.() -> Unit): Unit
Creates a group. |
| xcontext |
fun SpecBody.xcontext(description: String, reason: String? = null, body: SpecBody.() -> Unit): Unit
Creates a group. |
| xdescribe |
fun SpecBody.xdescribe(description: String, reason: String? = null, body: SpecBody.() -> Unit): Unit
Creates a group. |
| xgiven |
fun SpecBody.xgiven(description: String, reason: String? = null, body: SpecBody.() -> Unit): Unit
Creates a group. |
| xit |
fun TestContainer.xit(description: String, reason: String? = null, body: TestBody.() -> Unit = {}): Unit
Creates a pending test. |
| xon |
fun SpecBody.xon(description: String, reason: String? = null, body: ActionBody.() -> Unit = {}): Unit
Creates a pending group. |
| Spec |
interface Spec : SpecBody |