testcontainers_compose 1.0.13 copy "testcontainers_compose: ^1.0.13" to clipboard
testcontainers_compose: ^1.0.13 copied to clipboard

Docker Compose support for the testcontainers Dart library

example/example.dart

import 'package:testcontainers_compose/testcontainers_compose.dart';

void main() async {
  await DockerCompose.use(
    DockerCompose(context: 'example/fixtures'),
    (compose) async {
      final web = compose.container('web');
      final port = await web.exposedPort(8080);
      // make HTTP requests to localhost:port
      assert(port > 0);
    },
  );
}
0
likes
155
points
34
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Docker Compose support for the testcontainers Dart library

Repository (GitHub)
View/report issues

Topics

#testing #docker #compose #test-automation

Funding

Consider supporting this project:

github.com

License

Apache-2.0 (license)

Dependencies

http, meta, testcontainers_core

More

Packages that depend on testcontainers_compose