server_testing_shelf 0.3.2
server_testing_shelf: ^0.3.2 copied to clipboard
Adapter for the Shelf package to use server_testing for HTTP testing.
0.3.2 #
- Updated dependency constraints to align with server_testing 0.3.2 and property_testing 0.3.2.
0.3.1 #
- Synced server_testing dependency constraints.
0.3.0 #
0.2.1+1 #
- Updated the Shelf translator and dependencies to stay in sync with the latest server_testing transport behavior.
0.2.1 #
- Documented the package with badges, funding link, and a runnable Shelf sample.
0.2.0 #
- Fixed the Shelf response translator to stream bytes into the underlying
HttpResponsewithout double-closing the sink, eliminating sporadicStateErrorfailures under concurrent load. - Added property-based adapter tests (tagged
property) and shareddart_test.yamldefaults to keep the Shelf bridge aligned with the latestserver_testingtransports.
0.1.0 #
Features #
Shelf Integration
- ShelfRequestHandler implementation for seamless integration of Shelf applications with server_testing
- Automatic request/response translation between
dart:ioHttpRequest/HttpResponse and Shelf Request/Response - Support for both testing modes: in-memory and real HTTP server (ephemeral server)
- Shelf Pipeline support with middleware integration
- Full compatibility with Shelf Router and other Shelf ecosystem packages
Testing Utilities
- Fluent test API from server_testing available for Shelf applications
- JSON API testing with assertable JSON utilities
- Header and status assertions for response validation
- Body content assertions including partial matching
Examples
- Basic hello world example demonstrating request handling
- JSON API testing with nested assertions
- Pipeline integration with middleware
- Real HTTP server testing mode examples
Tests #
- Integration tests with Shelf Router
- Request/response translation unit tests
- Full request handler test suite covering all HTTP methods
- Pipeline and middleware integration tests
Deprecations #
None - Initial release