Last updated
Last updated
Dart already has fantastic testing support, through a library of that will make test writing faster. The following functions are exported by , and will make your testing much easier.
This function will start app
on an available port, and return a TestClient
instance (based on ) configured to send requests to the server. The client also supports session manipulation.
A Matcher
that asserts that the given http.Response
equals value
when decoded as JSON. This uses test.equals
internally, so anything that would pass that matcher passes this one.
A Matcher
that asserts the given http.Response
has the given status
code.
The complete set of angel_test
Matchers can be found .
Find out how to in an Angel application.
Learn how to use the handy .