Any thoughts on the next release being 5.0 and rem...
# kotest-contributors
s
Any thoughts on the next release being 5.0 and removing all the deprecated stuff we've built up over the 18 months of 4.x
r
What are your thoughts on consolidating
beforeTest
/
beforeAny
in the major version? What was there before: • `beforeTest`: runs before any leaf test or container What was added in 4.2: • `beforeEach`: runs before any leaf test •
beforeContainer:
runs before any container • `beforeAny`: runs before any leaf test or contaner, same as
beforeTest
The name
beforeEach
was chosen because it's standard naming for it in many other testing frameworks and because
beforeTest
was taken, but it is a bit confusing that both still exist. What's your take on this? 🙂
l
with 5.0 I'd suggest replacing InstancePerSpec with InstancePerTest
as the default behaviour
s
I like the idea of deprecating beforeTest to clean things up
👍 1