allure_dart_test 1.1.0 copy "allure_dart_test: ^1.1.0" to clipboard
allure_dart_test: ^1.1.0 copied to clipboard

Allure Report adapter for package:test suites in Dart.

example/main.dart

// Import Allure's package:test adapter to get reporting helpers in the test body.
import 'package:allure_dart_test/allure_dart_test.dart';

void main() {
  allureTest('basic passing test', (allure) async {
    await allure.step('perform assertion', () async {
      final answer = 40 + 2;
      if (answer != 42) {
        throw StateError('Expected 42, got $answer');
      }
    });

    await allure.textAttachment(
      name: 'debug-log',
      content: 'The answer was verified successfully.',
    );
  });
}
0
likes
140
points
170
downloads

Documentation

API reference

Publisher

verified publisherallurereport.org

Weekly Downloads

Allure Report adapter for package:test suites in Dart.

Repository (GitHub)
View/report issues
Contributing

License

Apache-2.0 (license)

Dependencies

allure_dart_commons, path, test, test_api

More

Packages that depend on allure_dart_test