testainers 0.0.8 copy "testainers: ^0.0.8" to clipboard
testainers: ^0.0.8 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.

6
likes
0
pub points
6%
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

License

unknown (LICENSE)

More

Packages that depend on testainers