Skip to main content

angel3_test 10.0.0 copy "angel3_test: ^10.0.0" to clipboard
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: TestClient responses report the contentLength the handler set, or null when none was set or the body was decompressed, instead of 0. A decompressed body has no content-length header
  • Breaking: TestClient.service() no longer takes type, which angel3_client removed. Pass a deserializer instead

Fixes in 10.0.0 #

  • isAngelHttpException(): Recognises the is_error key that AngelHttpException.toJson writes, and falls back to the response's status when the body has none. The exception is no longer printed
  • JSON matchers: isJson, hasValidBody and isAngelHttpException do not match a body that is not JSON, where they threw a FormatException
  • Mismatches: isJson, hasValidBody and isAngelHttpException describe 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 a ValidationException is a mismatch, where it threw a TypeError
  • Cookies: The cookies a handler sets are in the response's set-cookie header, where TestClient left them out
  • Basic auth: A malformed Basic authorization header is sent as it is, where TestClient threw a FormatException
  • Gzip: A content-encoding of 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, like angel3_client, so a typed service or one with a deserializer can follow another on the same path, where the first service was returned and the cast threw a TypeError
  • TestClient.close: Closes the services it created and the client's onAuthenticated stream, 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 lints to 6.0.0
  • Updated dependencies to the latest release

8.3.0 #

  • Require Dart >= 3.6
  • Updated lints to 5.0.0
  • Updated dependencies to the latest release

8.2.0 #

  • Require Dart >= 3.3
  • Updated lints to 4.0.0

8.1.1 #

  • Updated repository link

8.1.0 #

  • Updated lints to 3.0.0
  • Fixed linter warnings

8.0.1 #

  • Fixed hasStatus mismatch message
  • Fixed hasContentType mismatch message
  • Fixed hasValidBody mismatch message
  • Fixed hasHeader mismatch message
  • Fixed hasHeader failed test case

8.0.0 #

  • Require Dart >= 3.0
  • Upgraded http to 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 http dependency.

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 useZone flag to AngelHttp through TestServer.