testing library
Test helpers for gisila apps. Import it from tests only:
import 'package:gisila/testing.dart';
Classes
- GisilaTestClient
- Sends requests straight into an app's handler.
- TestAuthenticator
- An Authenticator for tests: tokenFor hands out a token for any Principal, and the client's GisilaTestClient.as uses it. Other requests go to fallback, so real tokens keep working alongside.
- TestResponse
- A fully read response.