-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Separate unit and integration tests #4280
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
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
ec2beae
Separate unit and integration tests
uglide bb3954b
Merge test coverage and update workflows
uglide d060e2a
Update pom.xml
uglide 133c77a
Fix jacoco:merge
uglide 0d4c56a
Include failsafe reports to fix tests results in PRs
uglide e72edf7
Another attempt
uglide 7dce95c
Just change the location of failsafe summary file
uglide d81b421
Fix tag for ActiveActiveLocalFailoverTest
uglide 914727b
Clean before running doctests
uglide 72a9edd
Fix redis container name
uglide 7f86964
Cache dependencies in doctests.yml
uglide 10970ee
Use manual build for codeql
uglide cb58fb9
Update .github/workflows/test-on-docker.yml
uglide 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
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 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -17,12 +17,7 @@ | |||||||||||||
import org.hamcrest.MatcherAssert; | ||||||||||||||
import org.hamcrest.Matchers; | ||||||||||||||
|
||||||||||||||
import org.junit.jupiter.api.AfterAll; | ||||||||||||||
import org.junit.jupiter.api.AfterEach; | ||||||||||||||
import org.junit.jupiter.api.BeforeAll; | ||||||||||||||
import org.junit.jupiter.api.BeforeEach; | ||||||||||||||
import org.junit.jupiter.api.Test; | ||||||||||||||
import org.junit.jupiter.api.Timeout; | ||||||||||||||
import org.junit.jupiter.api.*; | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nitpick] Using wildcard imports (.*) is generally discouraged as it can lead to namespace pollution and unclear dependencies. Consider importing specific classes instead.
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||||||||||
import redis.clients.jedis.args.*; | ||||||||||||||
import redis.clients.jedis.exceptions.JedisDataException; | ||||||||||||||
import redis.clients.jedis.params.*; | ||||||||||||||
|
@@ -36,6 +31,7 @@ | |||||||||||||
import redis.clients.jedis.util.JedisClusterTestUtil; | ||||||||||||||
import redis.clients.jedis.util.SafeEncoder; | ||||||||||||||
|
||||||||||||||
@Tag("integration") | ||||||||||||||
public class ClusterPipeliningTest { | ||||||||||||||
|
||||||||||||||
private static final String LOCAL_IP = "127.0.0.1"; | ||||||||||||||
|
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.
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.
The exclusion patterns for integration tests are duplicated between surefire and failsafe plugins. Consider extracting these patterns into properties to maintain consistency and reduce duplication.
Copilot uses AI. Check for mistakes.