testainers 0.1.1 copy "testainers: ^0.1.1" to clipboard
testainers: ^0.1.1 copied to clipboard

Testainers is a powerful Dart plugin designed to streamline the management of containers for testing purposes.

Testainers Testainers

Build With Love Version Licence Build Coverage Report

Testainers is a powerful Dart plugin designed to streamline the management of containers for testing purposes. With Testainers, developers can effortlessly create, configure, and manage isolated test environments within containers, ensuring consistent and reliable testing processes.

This plugin provides a user-friendly interface to handle container orchestration, allowing developers to quickly spin up and tear down test containers, define dependencies, and execute tests seamlessly.

Testainers empowers developers to achieve efficient and reproducible testing workflows, enabling them to focus on writing high-quality code while ensuring the reliability and integrity of their software through comprehensive containerized testing.

Funding #

Your contribution will help drive the development of quality tools for the Flutter and Dart developer community. Any amount will be appreciated. Thank you for your continued support!

BuyMeACoffee

PIX #

Sua contribuição ajudará a impulsionar o desenvolvimento de ferramentas de qualidade para a comunidade de desenvolvedores Flutter e Dart. Qualquer quantia será apreciada. Obrigado pelo seu apoio contínuo!

PIX

Usage #

import 'dart:io';

import 'package:http/http.dart';
import 'package:test/test.dart';
import 'package:testainers/testainers.dart';

///
///
///
void main() {
  ///
  ///
  ///
  group('Test Httpbucket', () {
    final TestainersHttpbucket container = TestainersHttpbucket();

    ///
    setUpAll(() async {
      await container.start();
    });

    ///
    test('Http Test', () async {
      final Response response = await get(
        Uri.parse('http://localhost:${container.httpPort}/methods'),
      );

      expect(response.statusCode, 200);
      expect(response.headers, isNotEmpty);
      expect(response.body, isNotEmpty);
    });

    ///
    tearDownAll(container.stop);
  });
}

Available Containers #

Open an issue to request a new container. #

Container Image Version Status
postgresql https://hub.docker.com/_/postgres v0.0.10
httpbucket https://hub.docker.com/r/testainers/httpbucket v0.0.6
redis https://hub.docker.com/_/redis v0.0.5
sshd https://hub.docker.com/r/testainers/sshd-container v0.0.4
MongoDB https://hub.docker.com/_/mongo v0.0.2
httpbin https://hub.docker.com/r/kennethreitz/httpbin v0.0.1
http-https-echo https://hub.docker.com/r/mendhak/http-https-echo v0.0.1
6
likes
120
pub points
7%
popularity

Publisher

verified publishertestainers.com

Testainers is a powerful Dart plugin designed to streamline the management of containers for testing purposes.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on testainers