From 6caa555d319f659febd0e3eb6c92d5c53663a341 Mon Sep 17 00:00:00 2001 From: Polina Cherkasova Date: Mon, 18 Nov 2024 12:49:51 -0800 Subject: [PATCH 1/4] - --- .../lib/leak_tracker_flutter_testing.dart | 2 +- .../leak_tracker_flutter_testing/pubspec.yaml | 1 + .../pubspec_overrides.yaml | 2 ++ .../lib/src}/test_case.dart | 0 pkgs/test_helpers/lib/test_helpers.dart | 1 + pkgs/test_helpers/pubspec.yaml | 21 +++++++++++++++++++ pkgs/test_helpers/pubspec_overrides.yaml | 5 +++++ 7 files changed, 31 insertions(+), 1 deletion(-) rename pkgs/{leak_tracker_flutter_testing/lib/src/testing_for_testing => test_helpers/lib/src}/test_case.dart (100%) create mode 100644 pkgs/test_helpers/lib/test_helpers.dart create mode 100644 pkgs/test_helpers/pubspec.yaml create mode 100644 pkgs/test_helpers/pubspec_overrides.yaml diff --git a/pkgs/leak_tracker_flutter_testing/lib/leak_tracker_flutter_testing.dart b/pkgs/leak_tracker_flutter_testing/lib/leak_tracker_flutter_testing.dart index 85f0c0a1..801d77e1 100644 --- a/pkgs/leak_tracker_flutter_testing/lib/leak_tracker_flutter_testing.dart +++ b/pkgs/leak_tracker_flutter_testing/lib/leak_tracker_flutter_testing.dart @@ -11,5 +11,5 @@ export 'src/matchers.dart'; export 'src/model.dart'; export 'src/testing.dart'; export 'src/testing_for_testing/leaking_classes.dart'; -export 'src/testing_for_testing/test_case.dart'; +export 'package:test_helpers/test_helpers.dart'; export 'src/testing_for_testing/test_settings.dart'; diff --git a/pkgs/leak_tracker_flutter_testing/pubspec.yaml b/pkgs/leak_tracker_flutter_testing/pubspec.yaml index 4dfb1560..8fb6ce91 100644 --- a/pkgs/leak_tracker_flutter_testing/pubspec.yaml +++ b/pkgs/leak_tracker_flutter_testing/pubspec.yaml @@ -14,6 +14,7 @@ dependencies: leak_tracker_testing: '>=3.0.1 <4.0.0' matcher: ^0.12.16 meta: ^1.8.0 + test_helpers: ^0.0.1 dev_dependencies: dart_flutter_team_lints: ^3.1.0 diff --git a/pkgs/leak_tracker_flutter_testing/pubspec_overrides.yaml b/pkgs/leak_tracker_flutter_testing/pubspec_overrides.yaml index 5ffd637b..874bac0d 100644 --- a/pkgs/leak_tracker_flutter_testing/pubspec_overrides.yaml +++ b/pkgs/leak_tracker_flutter_testing/pubspec_overrides.yaml @@ -3,3 +3,5 @@ dependency_overrides: path: ../leak_tracker leak_tracker_testing: path: ../leak_tracker_testing + test_helpers: + path: ../test_helpers diff --git a/pkgs/leak_tracker_flutter_testing/lib/src/testing_for_testing/test_case.dart b/pkgs/test_helpers/lib/src/test_case.dart similarity index 100% rename from pkgs/leak_tracker_flutter_testing/lib/src/testing_for_testing/test_case.dart rename to pkgs/test_helpers/lib/src/test_case.dart diff --git a/pkgs/test_helpers/lib/test_helpers.dart b/pkgs/test_helpers/lib/test_helpers.dart new file mode 100644 index 00000000..d60e0582 --- /dev/null +++ b/pkgs/test_helpers/lib/test_helpers.dart @@ -0,0 +1 @@ +export 'src/test_case.dart'; diff --git a/pkgs/test_helpers/pubspec.yaml b/pkgs/test_helpers/pubspec.yaml new file mode 100644 index 00000000..a71c0e48 --- /dev/null +++ b/pkgs/test_helpers/pubspec.yaml @@ -0,0 +1,21 @@ +name: test_helpers +version: 0.0.1 +publish_to: none +description: test helpers + +environment: + sdk: ^3.2.0 + flutter: '>=3.18.0-18.0.pre.54' + +dependencies: + flutter: + sdk: flutter + leak_tracker: '>=10.0.8 <11.0.0' + leak_tracker_testing: '>=3.0.1 <4.0.0' + matcher: ^0.12.16 + meta: ^1.8.0 + +dev_dependencies: + dart_flutter_team_lints: ^3.1.0 + layerlens: ^1.0.16 + test: ^1.25.0 diff --git a/pkgs/test_helpers/pubspec_overrides.yaml b/pkgs/test_helpers/pubspec_overrides.yaml new file mode 100644 index 00000000..5ffd637b --- /dev/null +++ b/pkgs/test_helpers/pubspec_overrides.yaml @@ -0,0 +1,5 @@ +dependency_overrides: + leak_tracker: + path: ../leak_tracker + leak_tracker_testing: + path: ../leak_tracker_testing From aa048ca1684b222176cd5f1fcd01a6c73a6578d8 Mon Sep 17 00:00:00 2001 From: Polina Cherkasova Date: Mon, 18 Nov 2024 12:57:21 -0800 Subject: [PATCH 2/4] - --- .../lib/leak_tracker_flutter_testing.dart | 1 - .../lib/src}/leaking_classes.dart | 0 pkgs/test_helpers/lib/test_helpers.dart | 1 + 3 files changed, 1 insertion(+), 1 deletion(-) rename pkgs/{leak_tracker_flutter_testing/lib/src/testing_for_testing => test_helpers/lib/src}/leaking_classes.dart (100%) diff --git a/pkgs/leak_tracker_flutter_testing/lib/leak_tracker_flutter_testing.dart b/pkgs/leak_tracker_flutter_testing/lib/leak_tracker_flutter_testing.dart index 801d77e1..e5c84261 100644 --- a/pkgs/leak_tracker_flutter_testing/lib/leak_tracker_flutter_testing.dart +++ b/pkgs/leak_tracker_flutter_testing/lib/leak_tracker_flutter_testing.dart @@ -10,6 +10,5 @@ export 'package:leak_tracker_testing/leak_tracker_testing.dart' export 'src/matchers.dart'; export 'src/model.dart'; export 'src/testing.dart'; -export 'src/testing_for_testing/leaking_classes.dart'; export 'package:test_helpers/test_helpers.dart'; export 'src/testing_for_testing/test_settings.dart'; diff --git a/pkgs/leak_tracker_flutter_testing/lib/src/testing_for_testing/leaking_classes.dart b/pkgs/test_helpers/lib/src/leaking_classes.dart similarity index 100% rename from pkgs/leak_tracker_flutter_testing/lib/src/testing_for_testing/leaking_classes.dart rename to pkgs/test_helpers/lib/src/leaking_classes.dart diff --git a/pkgs/test_helpers/lib/test_helpers.dart b/pkgs/test_helpers/lib/test_helpers.dart index d60e0582..b8a2ad6f 100644 --- a/pkgs/test_helpers/lib/test_helpers.dart +++ b/pkgs/test_helpers/lib/test_helpers.dart @@ -1 +1,2 @@ export 'src/test_case.dart'; +export 'src/leaking_classes.dart'; From b4e76fff47e8ae1b0bd02d2bedd58b5b147e262d Mon Sep 17 00:00:00 2001 From: Polina Cherkasova Date: Mon, 18 Nov 2024 12:59:11 -0800 Subject: [PATCH 3/4] - --- .../lib/leak_tracker_flutter_testing.dart | 1 - .../src/testing_for_testing => test_helpers/lib/src}/README.md | 0 .../lib/src}/test_settings.dart | 0 pkgs/test_helpers/lib/test_helpers.dart | 1 + 4 files changed, 1 insertion(+), 1 deletion(-) rename pkgs/{leak_tracker_flutter_testing/lib/src/testing_for_testing => test_helpers/lib/src}/README.md (100%) rename pkgs/{leak_tracker_flutter_testing/lib/src/testing_for_testing => test_helpers/lib/src}/test_settings.dart (100%) diff --git a/pkgs/leak_tracker_flutter_testing/lib/leak_tracker_flutter_testing.dart b/pkgs/leak_tracker_flutter_testing/lib/leak_tracker_flutter_testing.dart index e5c84261..6fc9bf33 100644 --- a/pkgs/leak_tracker_flutter_testing/lib/leak_tracker_flutter_testing.dart +++ b/pkgs/leak_tracker_flutter_testing/lib/leak_tracker_flutter_testing.dart @@ -11,4 +11,3 @@ export 'src/matchers.dart'; export 'src/model.dart'; export 'src/testing.dart'; export 'package:test_helpers/test_helpers.dart'; -export 'src/testing_for_testing/test_settings.dart'; diff --git a/pkgs/leak_tracker_flutter_testing/lib/src/testing_for_testing/README.md b/pkgs/test_helpers/lib/src/README.md similarity index 100% rename from pkgs/leak_tracker_flutter_testing/lib/src/testing_for_testing/README.md rename to pkgs/test_helpers/lib/src/README.md diff --git a/pkgs/leak_tracker_flutter_testing/lib/src/testing_for_testing/test_settings.dart b/pkgs/test_helpers/lib/src/test_settings.dart similarity index 100% rename from pkgs/leak_tracker_flutter_testing/lib/src/testing_for_testing/test_settings.dart rename to pkgs/test_helpers/lib/src/test_settings.dart diff --git a/pkgs/test_helpers/lib/test_helpers.dart b/pkgs/test_helpers/lib/test_helpers.dart index b8a2ad6f..3b0ea8a7 100644 --- a/pkgs/test_helpers/lib/test_helpers.dart +++ b/pkgs/test_helpers/lib/test_helpers.dart @@ -1,2 +1,3 @@ export 'src/test_case.dart'; export 'src/leaking_classes.dart'; +export 'src/test_settings.dart'; From 010f5ffc68bb93de36dfb8b701aa21ac35ed32b6 Mon Sep 17 00:00:00 2001 From: Polina Cherkasova Date: Mon, 18 Nov 2024 12:59:34 -0800 Subject: [PATCH 4/4] Update leak_tracker_flutter_testing.dart --- .../lib/leak_tracker_flutter_testing.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/leak_tracker_flutter_testing/lib/leak_tracker_flutter_testing.dart b/pkgs/leak_tracker_flutter_testing/lib/leak_tracker_flutter_testing.dart index 6fc9bf33..cab943e3 100644 --- a/pkgs/leak_tracker_flutter_testing/lib/leak_tracker_flutter_testing.dart +++ b/pkgs/leak_tracker_flutter_testing/lib/leak_tracker_flutter_testing.dart @@ -6,8 +6,8 @@ export 'package:leak_tracker/leak_tracker.dart' show IgnoredLeaks, LeakReport, LeakTracking, LeakType, Leaks; export 'package:leak_tracker_testing/leak_tracker_testing.dart' show LeakTesting, isLeakFree; +export 'package:test_helpers/test_helpers.dart'; export 'src/matchers.dart'; export 'src/model.dart'; export 'src/testing.dart'; -export 'package:test_helpers/test_helpers.dart';