phil-t
07/22/2022, 10:25 AMbeforeAll
function has some issues that I need to fix:
override fun beforeAll() { // beforeAll is deprecated
super.beforeAll()
readConfig()
RuntimeTagExpressionExtension.expression = tags // Unresolved reference: RuntimeTagExpressionExtension
....
readConfig()
reads some values from a config file including the tags string, which is then set in RuntimeTagExpressionExtension
but this seems to not exist in the new Kotest version
This was working fine on the old version, but what is the correct way to do this with the new version?
Am I correct to change the function as below?
override suspend fun beforeProject() {
super.beforeProject()
....
I also have a similar issue with afterAll
sam
07/22/2022, 10:28 AMphil-t
07/22/2022, 10:28 AMAbstractProjectConfig
sam
07/22/2022, 10:29 AMRuntimeTagExpressionExtension
exists but moved package but it looks like the inner value is private 🤦♂️🏻override fun extensions() = listOf(RuntimeTagExpressionExtension(tags))
inside your project config classphil-t
07/22/2022, 10:32 AMextensions()
is called before beforeProject()
so I had to do it like this to get the tags first:
override fun extensions(): List<RuntimeTagExpressionExtension> {
readConfig()
return listOf(RuntimeTagExpressionExtension(tags))
}
sam
07/22/2022, 11:25 AMphil-t
07/22/2022, 11:29 AMsam
07/22/2022, 11:32 AMphil-t
07/22/2022, 11:33 AM