-
Notifications
You must be signed in to change notification settings - Fork 641
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
fix(tests): Introduce junit5 vintage engine for running junit4 test cases over junit5 in rosco #958
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ases over junit5 in rosco Spring boot 2.4.x removed JUnit5 vintage engine from spring-boot-starter-test. [https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.4-Release-Notes#junit-5s-vintage-engine-removed-from-spring-boot-starter-test] It is required for executing junit4 based test cases in rosco. So, introducing junit-vintage-engine dependency in build.gradle, using testRuntimeOnly() as suggested in section 3.1 of https://junit.org/junit5/docs/5.6.2/user-guide/index.pdf After applying this fix, coverage increased from 217 to 252 test case executions.
dbyron-sf
approved these changes
Mar 2, 2023
dbyron-sf
added a commit
to dbyron-sf/rosco
that referenced
this pull request
Mar 21, 2023
…intage-engine dependency as it's not needed at test compile time, and since build.gradle supplies a test runtime dependency as of spinnaker#958
mergify bot
pushed a commit
that referenced
this pull request
Mar 22, 2023
…test runtime dependency (#963) * chore(manifests): remove testImplementation org.junit.vintage:junit-vintage-engine dependency as it's not needed at test compile time, and since build.gradle supplies a test runtime dependency as of #958 * fix(manifests/test): add org.junit.jupiter:junit-jupiter-engine as a test runtime dependency so junit5 tests run. Before this PR, 9 tests ran in rosco-manifests, all spock tests. After this PR, 32 tests run. Note that spring-boot-starter-test brings in org.junit.jupiter:junit-jupiter-engine so where that's used, we don't need to declare junit-jupiter-engine explicitly. Note also that rosco-core currently only has spock tests, so although it doesn't use spring-boot-starter-test, it doesn't need org.junit.jupiter:junit-jupiter-engine either.
yugaa22
pushed a commit
to OpsMx/rosco-oes
that referenced
this pull request
Jun 26, 2023
…ases over junit5 in rosco (spinnaker#958) Spring boot 2.4.x removed JUnit5 vintage engine from spring-boot-starter-test. [https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.4-Release-Notes#junit-5s-vintage-engine-removed-from-spring-boot-starter-test] It is required for executing junit4 based test cases in rosco. So, introducing junit-vintage-engine dependency in build.gradle, using testRuntimeOnly() as suggested in section 3.1 of https://junit.org/junit5/docs/5.6.2/user-guide/index.pdf After applying this fix, coverage increased from 217 to 252 test case executions.
yugaa22
pushed a commit
to OpsMx/rosco-oes
that referenced
this pull request
Jun 26, 2023
…test runtime dependency (spinnaker#963) * chore(manifests): remove testImplementation org.junit.vintage:junit-vintage-engine dependency as it's not needed at test compile time, and since build.gradle supplies a test runtime dependency as of spinnaker#958 * fix(manifests/test): add org.junit.jupiter:junit-jupiter-engine as a test runtime dependency so junit5 tests run. Before this PR, 9 tests ran in rosco-manifests, all spock tests. After this PR, 32 tests run. Note that spring-boot-starter-test brings in org.junit.jupiter:junit-jupiter-engine so where that's used, we don't need to declare junit-jupiter-engine explicitly. Note also that rosco-core currently only has spock tests, so although it doesn't use spring-boot-starter-test, it doesn't need org.junit.jupiter:junit-jupiter-engine either.
nemesisOsorio
pushed a commit
to OpsMx/rosco-oes
that referenced
this pull request
Apr 27, 2024
…ases over junit5 in rosco (spinnaker#958) Spring boot 2.4.x removed JUnit5 vintage engine from spring-boot-starter-test. [https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.4-Release-Notes#junit-5s-vintage-engine-removed-from-spring-boot-starter-test] It is required for executing junit4 based test cases in rosco. So, introducing junit-vintage-engine dependency in build.gradle, using testRuntimeOnly() as suggested in section 3.1 of https://junit.org/junit5/docs/5.6.2/user-guide/index.pdf After applying this fix, coverage increased from 217 to 252 test case executions.
nemesisOsorio
pushed a commit
to OpsMx/rosco-oes
that referenced
this pull request
Apr 27, 2024
…test runtime dependency (spinnaker#963) * chore(manifests): remove testImplementation org.junit.vintage:junit-vintage-engine dependency as it's not needed at test compile time, and since build.gradle supplies a test runtime dependency as of spinnaker#958 * fix(manifests/test): add org.junit.jupiter:junit-jupiter-engine as a test runtime dependency so junit5 tests run. Before this PR, 9 tests ran in rosco-manifests, all spock tests. After this PR, 32 tests run. Note that spring-boot-starter-test brings in org.junit.jupiter:junit-jupiter-engine so where that's used, we don't need to declare junit-jupiter-engine explicitly. Note also that rosco-core currently only has spock tests, so although it doesn't use spring-boot-starter-test, it doesn't need org.junit.jupiter:junit-jupiter-engine either.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Spring boot 2.4.x removed JUnit5 vintage engine from spring-boot-starter-test. It is required for executing junit4 based test cases in rosco. So, introducing junit-vintage-engine dependency in build.gradle, using testRuntimeOnly() as suggested in section 3.1 of https://junit.org/junit5/docs/5.6.2/user-guide/index.pdf
After applying this fix, coverage increased from 217 to 252 test case executions.