adapters_flutter 2.1.5 copy "adapters_flutter: ^2.1.5" to clipboard
adapters_flutter: ^2.1.5 copied to clipboard

retracted

The repository contains new versions of adapters for dart test frameworks.

example/example.dart

#!/usr/bin/env dart

@Tags(['suite_tag'])
import 'dart:io';

import 'package:adapters_flutter/adapters_flutter.dart';

void main() {
  group('example group', () {
    setUpAll(() async {
      HttpOverrides.global = null;

      await step('setup all step', () {
        expect(0, 0);
      });
    });

    setUp(() async {
      await step('setup step', () {
        expect(0, 0);
      });
    });

    tmsTest('example test',
        externalId: 'example_externalId',
        links: {Link('https://www.example.org/')},
        tags: {'example_tag'},
        title: 'example_title',
        workItemsIds: {'46890'}, () async {
      await step('success step', () {
        expect(0, 0);
      });

      await step('success step with attachment', () async {
        await addAttachment('avatar.png');
      });

      await step('success step with link', () async {
        await addLink('https://www.example.org/');
      });

      await step('success step with message', () async {
        await addMessage('example message');
      });

      final actual = await step('success step with return value', () {
        return 0;
      });

      expect(actual, 0);

      await step('success root step', () async {
        await step('success child step', () {
          expect(0, 0);
        });
      });

      await step('failed step', () {
        throw Exception('example exception.');
      });
    });

    tmsTestWidgets('example test widgets',
        externalId: 'example_widgets_externalId',
        links: {Link('https://www.example.org/')},
        tags: {'example_tag_widgets'},
        title: 'example_title_widgets',
        workItemsIds: {'46890'}, (tester) async {
      await step('success step', () {
        expect(0, 0);
      });

      await step('success step with attachment', () async {
        await addAttachment('avatar.png');
      });

      await step('success step with link', () async {
        await addLink('https://www.example.org/');
      });

      await step('success step with message', () async {
        await addMessage('example message');
      });

      final actual = await step('success step with return value', () {
        return 0;
      });

      expect(actual, 0);

      await step('success root step', () async {
        await step('success child step', () {
          expect(0, 0);
        });
      });

      await step('failed step', () {
        throw Exception('example exception.');
      });
    });

    tearDown(() async {
      await step('teardown step', () {
        expect(0, 0);
      });
    });

    tearDownAll(() async {
      await step('teardown all step', () {
        expect(0, 0);
      });
    });
  });
}
0
likes
0
pub points
31%
popularity

Publisher

unverified uploader

The repository contains new versions of adapters for dart test frameworks.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter_test, http, http_parser, logger, meta, mime, path, properties, synchronized, test_api, uuid

More

Packages that depend on adapters_flutter