-
Notifications
You must be signed in to change notification settings - Fork 623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose discovered specs as TestDescriptors during discovery and add support for unique IDs #3461
Conversation
Rather than storing the discovered spec classes in KotestEngineDescriptor it now uses exposes them as child TestDescriptors so that tools and IDEs can inspect the test plan prior to executing it. Co-authored-by: Jérôme Prinet <jprinet@gradle.com>
Based on a previously discovered `TestPlan`, tools may decide to split it and use `UniqueIdSelectors` to create multiple smaller `TestPlans`. Another use case is rerunning a test class, for example, because it failed. Co-authored-by: Jérôme Prinet <jprinet@gradle.com>
054f157
to
f5bc90b
Compare
Looks good to me, but it's a bit beyond me. Would like to have @sksamuel eyes on this |
@sksamuel Please let me know if you have any questions. I'd be happy to schedule a call with you if that makes it easier for you to review these changes. |
I'll review this weekend just been slammed at work.
…On Wed, Mar 29, 2023, 3:36 AM Marc Philipp ***@***.***> wrote:
@sksamuel <https://github.com/sksamuel> Please let me know if you have
any questions. I'd be happy to schedule a call with you if that makes it
easier for you to review these changes.
—
Reply to this email directly, view it on GitHub
<#3461 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFVSGXO25HEI7R6HXAQLYTW6PX7VANCNFSM6AAAAAAWBGJJNE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the specs are added at discovery time. I've looked over the engine and I don't think we do any filtering after that point so it looks good to me.
Thanks for such a comprehensive PR.
@sksamuel Thanks for the review and merging it! Should this PR be assigned to a milestone? Will it be released with 5.6? If so, do you have a rough estimate when that will be shipped? |
Yes it'll go out with 5.6 later this week.
…On Tue, Apr 4, 2023, 2:07 AM Marc Philipp ***@***.***> wrote:
@sksamuel <https://github.com/sksamuel> Thanks for the review and merging
it! Should this PR be assigned to a milestone? Will it be released with
5.6? If so, do you have a rough estimate when that will be shipped?
—
Reply to this email directly, view it on GitHub
<#3461 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFVSGVBBDMLS3CBILMLCFLW7PCELANCNFSM6AAAAAAWBGJJNE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This PR makes Kotest compatible with the requirements that are documented in the JUnit User Guide for interoperability with build tools and IDEs.
In particular the following two properties were not met prior to this change:
For Gradle Enterprise, we are relying on these properties in order to select a subset of the
TestPlan
for Predictive Test Selection and in order to split it into subsets that can be distributed with Test Distribution. Therefore, our customers could not use neither of these features when using Kotest. However, we’re convinced other tools will also benefit from Kotest being more inline with otherTestEngine
implementations such as JUnit Jupiter or Spock to provide a consistent user experience for their users.