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

Introduce integration tests using real MySQL and PostgreSQL #29

Merged
merged 17 commits into from
Sep 1, 2024

Conversation

mirakui
Copy link
Collaborator

@mirakui mirakui commented Aug 31, 2024

Previously, we only had unit tests that used a mocked database adapter to test Arproxy. This approach sometimes led to scenarios where existing test cases would pass, but the actual functionality would fail when using a real database adapter.

Additionally, as seen in PR #28, when ActiveRecord is upgraded and its Connection specifications change, it becomes difficult to detect issues using only mocked unit tests.

To address these concerns, I have implemented integration tests that use Docker to test Arproxy with actual databases and adapters. As an initial step, I've implemented simple use cases for both MySQL and PostgreSQL.

@mirakui mirakui marked this pull request as draft August 31, 2024 06:27
@mirakui mirakui marked this pull request as ready for review August 31, 2024 07:20
@mirakui mirakui added this to the v1 milestone Sep 1, 2024
@mirakui
Copy link
Collaborator Author

mirakui commented Sep 1, 2024

@mirakui mirakui changed the base branch from master to v1 September 1, 2024 06:33
@mirakui mirakui merged commit ea3de21 into v1 Sep 1, 2024
16 of 21 checks passed
@mirakui mirakui deleted the integration_test branch September 1, 2024 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant