Firstly, I saw this, and this other post sounds exactly the same as I need, except for one, I can’t use fixture.TestDataFixture, because I can’t extend fixture.FreeSpecLike, and I'm sure there should be some way to get the test name in a way that looks more like this (imaginary code that doesn't compile).
class MySpec extends FlatSpecLike with fixture.TestDataFixture {
"this technique" - {
"should work" in {
assert(testData.name == "this technique should work")
}
"should be easy" in { td =>
assert(testData.name == "this technique should be easy")
}
}
}
Any ideas? I just can’t believe that this is impossible: D
source
share