Skip to content

Test optimisation - #5

Merged
vkuttyp merged 4 commits into
vkuttyp:mainfrom
FoxClock:TestOptimisation
Feb 22, 2026
Merged

Test optimisation#5
vkuttyp merged 4 commits into
vkuttyp:mainfrom
FoxClock:TestOptimisation

Conversation

@FoxClock

Copy link
Copy Markdown
Contributor

Optimised and modularised some of the tests.
Used pre and post run methods to build and collapse the sqlclient.

XCTest calls setupWithError and tearDownWithError before each test method. This can be used to setup the sql client for each test. 

This centralises the test setup and cleanup. Ensuring that there is no race condition from a defer task, as well as shortening the logic for each test. 

Local clients have been constructed for testing connections and double connects. As this would not be compatible with the more global approach.
…onnection without credentials.

Also added guard to skip deconstruction of nil connection.
@vkuttyp
vkuttyp merged commit 6bf768e into vkuttyp:main Feb 22, 2026
1 check passed
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