Skip to content

fix(test): resolve all baseline test failures - #364

Merged
usernane merged 1 commit into
mainfrom
fix/baseline-test-failures
May 29, 2026
Merged

fix(test): resolve all baseline test failures#364
usernane merged 1 commit into
mainfrom
fix/baseline-test-failures

Conversation

@usernane

Copy link
Copy Markdown
Member

Summary

Fix all pre-existing test failures so the test suite passes cleanly (0 errors, 0 failures).

Motivation

The test suite had 4 errors and 6 failures that were unrelated to any recent changes. These masked real regressions and made CI unreliable.

Changes

  • MSSQL session tests: Add skipIfMssqlUnavailable() helper that marks tests as skipped when MSSQL container is unreachable (same pattern as MSSQLSessionStorageTest)
  • AddDbConnectionCommandTest: Update expected CLI output to include "2: sqlite\n" (added by database v2.2 upgrade)
  • IntegrationAllCommandsTest: Same sqlite output fix
  • Fix shifted array indices in test01/test04 that were incorrectly offset

How to Test / Verify

composer test10784 tests, 0 errors, 0 failures, 20 skipped (MSSQL tests when container unavailable).

Breaking Changes and Migration Steps

None.

Checklist

  • I reviewed my own diff before requesting review
  • My commits follow Conventional Commits
  • The title of the pull request follows Conventional Commits
  • I added/updated tests (or explained why not)
  • I updated docs (if needed)
  • I ran lint/cs-fixer (if applicable)
  • I considered backward compatibility
  • I considered security

Related issues

Not Applicable

- Add skip logic to MSSQL session tests when connection unavailable
- Update AddDbConnectionCommandTest expected output to include sqlite option
  (added in database v2.2)
- Update IntegrationAllCommandsTest expected output for sqlite
- Fix shifted array indices in AddDbConnectionCommandTest

All 784 tests now pass with 0 errors, 0 failures.
@usernane
usernane merged commit 0f595b0 into main May 29, 2026
7 of 12 checks 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.

1 participant