Skip to content

Reorganize tests into logical files by concern#100

Merged
SeanTAllen merged 1 commit intomainfrom
test-reorganization
Feb 12, 2026
Merged

Reorganize tests into logical files by concern#100
SeanTAllen merged 1 commit intomainfrom
test-reorganization

Conversation

@SeanTAllen
Copy link
Member

Split _test.pony (2335 lines) into 5 new files organized by test concern:

  • _test_session.pony — mock-server session behavior tests (junk messages, unanswered queries, prepare shutdown, terminate, zero-row select)
  • _test_ssl.pony — SSL negotiation unit tests + SSL integration tests
  • _test_cancel.pony — cancel query unit tests with mock servers
  • _test_auth.pony — SCRAM-SHA-256 + unsupported auth unit tests
  • _test_md5.pony — MD5 authentication integration tests

_test.pony retains the Main test registry, _ConnectionTestConfiguration, basic connect/auth integration tests, and shared notifies. No test logic changed — purely organizational.

Closes #96

_test.pony had grown to 2335 lines mixing integration tests, mock-server
unit tests, SSL negotiation tests, authentication protocol tests, and
cancel tests. Split into 5 new files organized by test concern:

- _test_session.pony: mock-server session behavior tests (junk messages,
  unanswered queries, prepare shutdown, terminate, zero-row select)
- _test_ssl.pony: SSL negotiation unit tests + SSL integration tests
- _test_cancel.pony: cancel query unit tests with mock servers
- _test_auth.pony: SCRAM-SHA-256 + unsupported auth unit tests
- _test_md5.pony: MD5 authentication integration tests

_test.pony retains the Main test registry, _ConnectionTestConfiguration,
basic connect/auth integration tests, and shared notifies used across
files. All 80 unit tests pass. CLAUDE.md updated to reflect new layout.

Closes #96
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Feb 12, 2026
@SeanTAllen SeanTAllen merged commit 766cff1 into main Feb 12, 2026
10 checks passed
@SeanTAllen SeanTAllen deleted the test-reorganization branch February 12, 2026 15:50
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Feb 12, 2026
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.

Tests need reorganization

2 participants