Skip to content
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

Enable JUnitPlatform for Spock tests #4568

Merged
merged 2 commits into from Oct 12, 2021
Merged

Enable JUnitPlatform for Spock tests #4568

merged 2 commits into from Oct 12, 2021

Conversation

kiview
Copy link
Member

@kiview kiview commented Oct 11, 2021

When Dependabot bumped Spock to 2.0 in #4152, our test execution for the Spock module was implicitly disabled. Since Spock 2.0 is based on the JUnit platform, Gradle needs to be configured explicitly to discover and run the tests.

This also has been proven to introduce some unexpected issues to our users before (see https://twitter.com/musketyr/status/1446084194048827397).

While I think it is okay to go ahead using Spock 2.0, it might also be a good idea to document the required change in the Gradle config.

Since Spock 2 is based on the JUnit platform, Gradle needs to be configured explicitly to discover and run the tests.
@kiview kiview changed the title Enable jUnitPlatform for Spock tests Enable jUnitPlatform for Spock tests Oct 11, 2021
@kiview kiview changed the title Enable jUnitPlatform for Spock tests Enable JUnitPlatform for Spock tests Oct 11, 2021
@kiview kiview added this to the next milestone Oct 12, 2021
@kiview kiview merged commit 8d40cbd into master Oct 12, 2021
@delete-merged-branch delete-merged-branch bot deleted the spock2-junit5-runner branch October 12, 2021 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants