dave08
12/25/2018, 4:26 PMfun AbstractDescribeSpec.DescribeScope.coIt(name: String, test: TestContext.(CoroutineScope) -> Unit) {
context.registerTestCase(
"Scenario: $name",
this@AbstractDescribeSpec,
{ runBlocking { test(this) } },
this@AbstractDescribeSpec.defaultTestCaseConfig,
TestType.Test
)
}
The this@AbstractDescribeSpec
is red because I'm in DescribeScope
, is there any way to refer to AbstractDescribeSpec
?