routed_testing 0.3.2
routed_testing: ^0.3.2 copied to clipboard
Routed-specific testing utilities that extend server_testing for integration tests.
0.3.2 #
- Added
providersparameter toengineTestandengineGroupfor explicit provider composition. - Updated to support routed 0.3.2 Engine API changes.
0.3.1 #
- Synced routed ecosystem dependency constraints.
0.3.0 #
0.2.1+1 #
- Refresh docs and metadata to match the latest routed ecosystem templates.
0.2.1 #
- Added README badges, installation details, and funding notes so the package documents match the rest of the ecosystem.
0.2.0 #
- Added property-driven coverage for
RoutedRequestHandlerso route parameters round-trip correctly across in-memory and ephemeral-server transports. - Hooked the handler bootstrap into the engine lifecycle with explicit ignores for async server startup, preventing analyzer noise when embedding in tests.
0.1.0 #
Features #
Core Testing Utilities (Framework Independent)
- AssertableJson - Fluent API for making assertions on JSON objects
- Type checking with
whereType<T>() - Nested property access with dot notation
- Array validation and iteration
- Numeric comparisons (greater than, less than, between)
- Pattern matching and contains operations
- Schema validation with type checking
- Property interaction tracking with
verifyInteracted()
- Type checking with
- AssertableJsonString - JSON string validation utilities
- Numeric assertions - Type-safe numeric comparison extensions
- Conditional testing -
when()for conditional assertion chains
Routed Framework Integration
- RoutedTransport - Integration layer for testing Routed applications
- Test client utilities - HTTP request/response testing with Routed engine
- Route testing helpers - Simplified testing for route handlers
- Multipart request support - Builder API for testing file uploads
- Integration test helpers - Utilities for end-to-end testing
JSON Assertion Methods
has()- Assert property existencehasNested()- Assert nested property with dot notationwhere()- Assert property value equalitywhereType<T>()- Assert property typewhereContains()- Assert string/array contains valuewhereIn()- Assert value in listcount()- Assert array lengtheach()- Iterate and assert on array elementsisGreaterThan(),isLessThan(),isBetween()- Numeric assertionsmatchesSchema()- Validate object structure against schema
Tests #
- Route testing examples with GET/POST/PUT/DELETE methods
- JSON assertion test suite
- Multipart request handling tests
Deprecations #
None - Initial release