angel3_test 10.0.0
angel3_test: ^10.0.0 copied to clipboard
Testing utility library for the Angel3 framework. Use with package:test.
Change Log #
10.0.0 #
Breaking changes in 10.0.0 #
- Breaking:
TestClientresponses report thecontentLengththe handler set, ornullwhen none was set or the body was decompressed, instead of0. A decompressed body has nocontent-lengthheader - Breaking:
TestClient.service()no longer takestype, whichangel3_clientremoved. Pass adeserializerinstead
Fixes in 10.0.0 #
isAngelHttpException(): Recognises theis_errorkey thatAngelHttpException.toJsonwrites, and falls back to the response's status when the body has none. The exception is no longer printed- JSON matchers:
isJson,hasValidBodyandisAngelHttpExceptiondo not match a body that is not JSON, where they threw aFormatException - Mismatches:
isJson,hasValidBodyandisAngelHttpExceptiondescribe the response they got: its body, its validation errors (only those of that response), or its status, message and errors hasValidBody: An error other than aValidationExceptionis a mismatch, where it threw aTypeError- Cookies: The cookies a handler sets are in the response's
set-cookieheader, whereTestClientleft them out - Basic auth: A malformed
Basicauthorization header is sent as it is, whereTestClientthrew aFormatException - Gzip: A
content-encodingof several encodings or in another case (GZIP, identity) is decompressed - Dependencies: Removed the unused
angel3_container TestClient.service: Returns a new service for each call, likeangel3_client, so a typed service or one with adeserializercan follow another on the same path, where the first service was returned and the cast threw aTypeErrorTestClient.close: Closes the services it created and the client'sonAuthenticatedstream, where they were left open- Tests: No longer use
MirrorsReflector - Docs: The README tells how to install and use the package, and how to migrate from 9.x
9.1.1 #
- Fix analyzer warnings and errors
9.1.0 #
- Require Dart >= 3.13
9.0.0 #
- Require Dart >= 3.12
8.4.0 #
- Require Dart >= 3.8
- Updated
lintsto 6.0.0 - Updated dependencies to the latest release
8.3.0 #
- Require Dart >= 3.6
- Updated
lintsto 5.0.0 - Updated dependencies to the latest release
8.2.0 #
- Require Dart >= 3.3
- Updated
lintsto 4.0.0
8.1.1 #
- Updated repository link
8.1.0 #
- Updated
lintsto 3.0.0 - Fixed linter warnings
8.0.1 #
- Fixed
hasStatusmismatch message - Fixed
hasContentTypemismatch message - Fixed
hasValidBodymismatch message - Fixed
hasHeadermismatch message - Fixed
hasHeaderfailed test case
8.0.0 #
- Require Dart >= 3.0
- Upgraded
httpto 1.0.0
7.0.0 #
- Require Dart >= 2.17
6.0.0 #
- Require Dart >= 2.16
5.0.0 #
- Skipped release
4.1.1 #
- Fixed NNBD issues
4.1.0 #
- Updated linter to
package:lints
4.0.3 #
- Updated README
- Fixed NNBD issue
4.0.2 #
- Resolved static analysis warnings
4.0.1 #
- Updated AUTHORS and LICENSE
4.0.0 #
- Migrated to support Dart >= 2.12 NNBD
3.0.0 #
- Migrated to work with Dart >= 2.12 Non NNBD
2.0.1 #
- Update badge.
- Handle userInfo + basic auth.
2.0.0 #
- Update to work with
client@2.
2.0.0-alpha.4 #
2.0.0-alpha.3 #
- Update
httpdependency.
2.0.0-alpha.2 #
- Explicitly import
package:angel_framework/http.dart.
2.0.0-alpha.1 #
- Update for compliance with newer
angel_client.
2.0.0-alpha #
- Depend on Dart 2 and Angel 2.
1.1.0+1 #
- Dart 2/strong mode fixes.
- Pass a
useZoneflag toAngelHttpthroughTestServer.