https://kotlinlang.org logo
#kotest
Title
# kotest
d

dimsuz

02/03/2022, 11:16 AM
Hello! Trying to write data-driven-tests as described in the manual, but none of the below finds
withData
, unresolved reference. Was there an api change? This is
5.1.0
Copy code
class JobFlowCombinatorsTest : ShouldSpec({
  context("state merging") {
    withData() {}
  }
  should("correctly combine states") {
    withData() {}
  }
})
s

sam

02/03/2022, 11:28 AM
Have you added kotest-framework-datatest module ?
d

dimsuz

02/03/2022, 11:29 AM
oops. Indeed I haven't, sorry for the noise! 🙂
s

sam

02/03/2022, 11:30 AM
no problem, it's in the docs but not super clear
I'll make it a big loud box
K 1
Before
Now
d

dimsuz

02/03/2022, 11:42 AM
Great! thanks!
11 Views