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

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

example/testainers_example.dart

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

///
///
///
void main() {
  ///
  ///
  ///
  group('Test HttpBin', () {
    final TestainersHttpBin container = TestainersHttpBin();

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

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

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

    ///
    tearDownAll(container.stop);
  });
}
6
likes
0
pub points
8%
popularity

Publisher

verified publishertestainers.com

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

http

More

Packages that depend on testainers