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

Allure Report adapter for flutter_test and host-run integration_test.

allure_flutter_test #

allure_flutter_test adds Allure reporting for flutter_test and host-run integration_test suites.

Usage #

Add the package to your pubspec.yaml:

dev_dependencies:
  allure_flutter_test: ^1.0.0

For widget tests, replace the normal flutter_test import with the Allure drop-in import:

import 'package:allure_flutter_test/flutter_test.dart';

void main() {
  testWidgets('example', (tester) async {
    expect(find.text('missing'), findsNothing);
  });
}

For host-run integration tests, replace the normal integration_test import with the Allure integration-test wrapper:

import 'package:allure_flutter_test/integration_test.dart';

void main() {
  IntegrationTestWidgetsFlutterBinding.ensureInitialized();

  testWidgets('example', (tester) async {
    expect(find.text('missing'), findsNothing);
  });
}

If you need to keep the original framework imports or provide a custom AllureLifecycle, install the runtime explicitly in test/flutter_test_config.dart:

import 'dart:async';

import 'package:allure_flutter_test/allure_flutter_test.dart';

Future<void> testExecutable(FutureOr<void> Function() testMain) async {
  installAllure();
  await testMain();
}

benchmarkWidgets is intentionally out of scope in this phase and is only re-exported unchanged.

This repository's CI verifies integration-test framework labeling through a host flutter test smoke test that initializes IntegrationTestWidgetsFlutterBinding. Running real flutter test integration_test/... suites still requires a supported app/device target in the consumer project.

0
likes
160
points
55
downloads

Documentation

API reference

Publisher

verified publisherallurereport.org

Weekly Downloads

Allure Report adapter for flutter_test and host-run integration_test.

Repository (GitHub)
View/report issues
Contributing

License

Apache-2.0 (license)

Dependencies

allure_dart_commons, allure_dart_test, flutter, flutter_test, integration_test

More

Packages that depend on allure_flutter_test