Skip to content

Add server-side tests for the Ring handler#50

Merged
bbatsov merged 1 commit intomasterfrom
add-core-handler-tests
Feb 19, 2026
Merged

Add server-side tests for the Ring handler#50
bbatsov merged 1 commit intomasterfrom
add-core-handler-tests

Conversation

@bbatsov
Copy link
Contributor

@bbatsov bbatsov commented Feb 18, 2026

The test suite only had drawbridge.client-test covering eval round-trips through a real Jetty server. This adds drawbridge.core-test that tests the ring handler directly with Ring request maps — faster, more focused, and isolates server logic from transport concerns.

Covers method rejection (PUT/DELETE/PATCH), GET-with-op rejection, empty GET responses, POST eval, session persistence, custom :cookie-name, and custom :nrepl-handler. All passing across Clojure 1.10, 1.11, and 1.12.

@bbatsov bbatsov force-pushed the add-core-handler-tests branch from 507a468 to 5f8bf81 Compare February 18, 2026 18:23
The test suite only covered eval round-trips through a real Jetty server
via drawbridge.client-test. This adds direct Ring-level tests for the
handler returned by ring-handler, covering method rejection, GET-with-op
rejection, eval responses, session persistence, custom cookie names, and
custom nREPL handlers.
@bbatsov bbatsov force-pushed the add-core-handler-tests branch from 5f8bf81 to 184b300 Compare February 18, 2026 20:18
@bbatsov bbatsov merged commit 1040952 into master Feb 19, 2026
2 checks passed
@bbatsov bbatsov deleted the add-core-handler-tests branch February 19, 2026 07:30
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