spekframework / spek

A specification framework for Kotlin
Other
2.23k stars 180 forks source link

Spek should be compatible with JUnit Platform suites #986

Open marcphilipp opened 2 years ago

marcphilipp commented 2 years ago

JUnit 5.8 introduced @Suite classes and a new engine to execute them. Spek is currently incompatible with them because it does not use the UniqueId passed in to TestEngine.discover for the children of the engine descriptor and instead constructs its own: https://github.com/spekframework/spek/blob/2.x/spek-runner-junit5/src/main/kotlin/org/spekframework/spek2/junit/SpekTestDescriptor.kt#L20

rpalcolea commented 1 year ago

Hi @raniejade

Having proper UniqueId support would help people using Gradle to use features such as test retries, predictive test selection and test distribution

Wondering if you have any thoughts on this?