Skip to content

Define Test Fixtures - #123

Merged
justing-bq merged 2 commits into
apache-odbcfrom
setupTeardown
Oct 20, 2025
Merged

Define Test Fixtures#123
justing-bq merged 2 commits into
apache-odbcfrom
setupTeardown

Conversation

@justing-bq

@justing-bq justing-bq commented Oct 16, 2025

Copy link
Copy Markdown

Rationale for this change

We want test fixtures for each test file.

What changes are included in this PR?

Test Fixtures are added for each test file.
Connect & disconnect is moved to the fixture's SetUp()/Teardown() methods.

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

@justing-bq
justing-bq marked this pull request as ready for review October 16, 2025 16:37

@alinaliBQ alinaliBQ left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On my machine I found these tests failing, pls check:

[  FAILED  ] 5 tests, listed below:
[  FAILED  ] FlightSQLODBCTestBase/0.TestFreeNullHandles, where TypeParam = arrow::flight::sql::odbc::FlightSQLODBCMockTestBase
[  FAILED  ] FlightSQLODBCTestBase/1.TestFreeNullHandles, where TypeParam = arrow::flight::sql::odbc::FlightSQLODBCRemoteTestBase
[  FAILED  ] FlightSQLODBCMockTestBase.TestSQLGetTypeInfoTimeODBCVer2
[  FAILED  ] FlightSQLODBCMockTestBase.TestSQLGetTypeInfoSQLTypeTimeODBCVer2
[  FAILED  ] FlightSQLODBCMockTestBase.TestSQLGetTypeInfoSQLTimestampODBCVer2

 5 FAILED TESTS

Comment thread cpp/src/arrow/flight/sql/odbc/tests/odbc_test_suite.cc Outdated
^ Conflicts:
^	cpp/src/arrow/flight/sql/odbc/tests/connection_test.cc
@justing-bq justing-bq changed the title Connect/disconnect in SetUp/TearDown Define Test Fixtures Oct 17, 2025

@alinaliBQ alinaliBQ left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@justing-bq
justing-bq merged commit 42c5394 into apache-odbc Oct 20, 2025
22 of 24 checks passed
@justing-bq
justing-bq deleted the setupTeardown branch October 20, 2025 20:04
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.

2 participants