boot_test
Testing utilities for the Boot Framework.
Features
bootTest()— in-memory HTTP testing without a real serverTestContainer— bean access with get/getAll/getNamed/has/overrideBootTestClient— HTTP client with expectStatus, json, jsonList- Overrides applied before configure (prevents @PostConstruct on fakes)
- Full configureRuntime (security, static files, WebSocket) in tests
Usage
await bootTest($configure, test: (client, container) async {
final res = await client.get('/hello/');
res.expectStatus(200);
expect(res.json()['message'], 'Hello!');
});
Libraries
- boot_test
- Testing utilities for Boot framework applications.