flutter_jc_printer_plugin/example/integration_test/plugin_integration_test.dart

26 lines
943 B
Dart
Raw Permalink Normal View History

2023-10-20 13:49:23 +08:00
// This is a basic Flutter integration test.
//
// Since integration tests run in a full Flutter application, they can interact
// with the host side of a plugin implementation, unlike Dart unit tests.
//
// For more information about Flutter integration tests, please see
// https://docs.flutter.dev/cookbook/testing/integration/introduction
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
2023-10-24 15:20:03 +08:00
// import 'package:jc_printer/jc_printer.dart';
2023-10-20 13:49:23 +08:00
void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
testWidgets('getPlatformVersion test', (WidgetTester tester) async {
2023-10-22 12:31:46 +08:00
// final JcPrinter plugin = JcPrinter();
// final String? version = await plugin.getPlatformVersion();
2023-10-20 13:49:23 +08:00
// The version string depends on the host platform running the test, so
// just assert that some non-empty string is returned.
2023-10-22 12:31:46 +08:00
// expect(version?.isNotEmpty, true);
2023-10-20 13:49:23 +08:00
});
}