testing library

Testing helpers: an in-process HTTP client, and path resolution that does not depend on the directory the test runner was started from.

Classes

TestClient
Calls the HTTP kernel in-process, no sockets. Laravel's $this->get('/').
TestResponse
Response wrapper with Laravel-style chainable assertions.
TestUpload
One file in a TestClient.postMultipart call.

Functions

packageRoot(String package) Future<String>
The on-disk root of package, resolved through the package config rather than the process working directory.

Exceptions / Errors

TestClientAssertionError