boot_test 0.2.0+2 copy "boot_test: ^0.2.0+2" to clipboard
boot_test: ^0.2.0+2 copied to clipboard

Testing utilities for Boot framework applications.

boot_test #

Testing utilities for the Boot Framework.

Features #

  • bootTest() — in-memory HTTP testing without a real server
  • TestContainer — bean access with get/getAll/getNamed/has/override
  • BootTestClient — 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!');
});
0
likes
140
points
3
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Testing utilities for Boot framework applications.

Repository (GitHub)
View/report issues

Topics

#boot #testing #server

License

MIT (license)

Dependencies

boot, shelf, test

More

Packages that depend on boot_test