Xavier F. Gouchet
02/20/2024, 10:02 AMDescribeSpec
test enabledIf
. This documentation page only mentions this with FreeSpec
styled tests. I can't find what the syntax would be with a describe
or it
method.
"should do something".config(enabledIf = { … }) {
// test here
}
Xavier F. Gouchet
02/20/2024, 10:03 AMfun describe(name: String, test: suspend DescribeSpecContainerScope.() -> Unit) {
addContainer(
TestName("Describe: ", name, false),
disabled = false,
null // <-- this should be where the enabled is passed
) { DescribeSpecContainerScope(this).test() }
}
dave08
02/27/2024, 10:17 AMif(...) {...}
block 🤔?Xavier F. Gouchet
02/28/2024, 4:04 PMdave08
02/29/2024, 10:37 AMdave08
02/29/2024, 10:38 AMshould(...).config(...) { }
and test(...)..
I don't see why it wouldn't be for describe.Xavier F. Gouchet
02/29/2024, 1:14 PM