-
Notifications
You must be signed in to change notification settings - Fork 4.5k
JUnit5 support #35688
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
Merged
Merged
JUnit5 support #35688
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
a45e9e9
JUnit 5 support.
ce30d2d
Update JUnit BOM version to 5.13.4
dc94d4e
Update CHANGES.md with JUnit 5 support for 2.67.0
f351c9f
Update CHANGES.md with correct issue reference #18733
9ceae75
Fix JMS module tests for JUnit 5 compatibility
c9fac8d
Enhance JUnit 5 support with improved TestPipelineExtension
915b788
Conservative JUnit 5 implementation with minimal dependencies
18dcfbe
Java: Move JUnit TestPipelineExtension to sdks/java/testing/junit; re…
be470fa
Move JUnit4to5MigrationExampleTest to testing:junit; remove from core…
110ad55
Merge branch 'master' into junit5-support
chennu2020 c44c5a1
test: stabilize flaky tests for CI
fc273a0
docs: update CHANGES.md for JUnit 5 support; core: update TestPipelin…
4f21846
Merge branch 'master' into junit5-support
chennu2020 8ac2d9f
Update CHANGES.md
chennu2020 6c99215
Update CHANGES.md - move JUnit5 support to 2.68.0
chennu2020 bd75731
Update CHANGES.md
chennu2020 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one | ||
| * or more contributor license agreements. See the NOTICE file | ||
| * distributed with this work for additional information | ||
| * regarding copyright ownership. The ASF licenses this file | ||
| * to you under the Apache License, Version 2.0 (the | ||
| * License); you may not use this file except in compliance | ||
| * with the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| plugins { id 'org.apache.beam.module' } | ||
|
|
||
| applyJavaNature( | ||
| exportJavadoc: false, | ||
| automaticModuleName: 'org.apache.beam.sdk.testing.junit', | ||
| archivesBaseName: 'beam-sdks-java-testing-junit' | ||
| ) | ||
|
|
||
| description = "Apache Beam :: SDKs :: Java :: Testing :: JUnit" | ||
|
|
||
| dependencies { | ||
| implementation enforcedPlatform(library.java.google_cloud_platform_libraries_bom) | ||
| implementation project(path: ":sdks:java:core", configuration: "shadow") | ||
| implementation library.java.vendored_guava_32_1_2_jre | ||
| // Needed to resolve TestPipeline's JUnit 4 TestRule type and @Category at compile time, | ||
| // but should not leak to consumers at runtime. | ||
| provided library.java.junit | ||
|
|
||
| // JUnit 5 API needed to compile the extension; not packaged for consumers of core. | ||
| provided library.java.jupiter_api | ||
|
|
||
| testImplementation project(path: ":sdks:java:core", configuration: "shadow") | ||
| testImplementation library.java.jupiter_api | ||
| testImplementation library.java.junit | ||
| testRuntimeOnly library.java.jupiter_engine | ||
| testRuntimeOnly project(path: ":runners:direct-java", configuration: "shadow") | ||
| } | ||
|
|
||
| // This module runs JUnit 5 tests using the JUnit Platform. | ||
| test { | ||
| useJUnitPlatform() | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.