diff --git a/catalyst_voices/packages/catalyst_voices_blocs/test/src/catalyst_voices_blocs_test.dart b/catalyst_voices/packages/catalyst_voices_blocs/test/src/catalyst_voices_blocs_test.dart index d717b8cb4d7..81cff212d61 100644 --- a/catalyst_voices/packages/catalyst_voices_blocs/test/src/catalyst_voices_blocs_test.dart +++ b/catalyst_voices/packages/catalyst_voices_blocs/test/src/catalyst_voices_blocs_test.dart @@ -1,3 +1,9 @@ -// ignore_for_file: prefer_const_constructors +import 'package:test/test.dart'; -void main() {} +void main() { + group('catalyst_voices_blocs', () { + test('Dummy test', () { + expect(1 + 1, equals(2)); + }); + }); +} diff --git a/catalyst_voices/packages/catalyst_voices_models/test/src/catalyst_voices_models_test.dart b/catalyst_voices/packages/catalyst_voices_models/test/src/catalyst_voices_models_test.dart index ab73b3a234a..5de63d6393d 100644 --- a/catalyst_voices/packages/catalyst_voices_models/test/src/catalyst_voices_models_test.dart +++ b/catalyst_voices/packages/catalyst_voices_models/test/src/catalyst_voices_models_test.dart @@ -1 +1,9 @@ -void main() {} +import 'package:test/test.dart'; + +void main() { + group('catalyst_voices_models', () { + test('Dummy test', () { + expect(1 + 1, equals(2)); + }); + }); +} diff --git a/catalyst_voices/packages/catalyst_voices_services/test/src/catalyst_voices_services_test.dart b/catalyst_voices/packages/catalyst_voices_services/test/src/catalyst_voices_services_test.dart index ab73b3a234a..5014b6391dd 100644 --- a/catalyst_voices/packages/catalyst_voices_services/test/src/catalyst_voices_services_test.dart +++ b/catalyst_voices/packages/catalyst_voices_services/test/src/catalyst_voices_services_test.dart @@ -1 +1,9 @@ -void main() {} +import 'package:test/test.dart'; + +void main() { + group('catalyst_voices_services', () { + test('Dummy test', () { + expect(1 + 1, equals(2)); + }); + }); +} diff --git a/catalyst_voices/packages/catalyst_voices_view_models/test/src/catalyst_voices_view_models_test.dart b/catalyst_voices/packages/catalyst_voices_view_models/test/src/catalyst_voices_view_models_test.dart index b0d5ab372b4..d2a40eb1ff5 100644 --- a/catalyst_voices/packages/catalyst_voices_view_models/test/src/catalyst_voices_view_models_test.dart +++ b/catalyst_voices/packages/catalyst_voices_view_models/test/src/catalyst_voices_view_models_test.dart @@ -1,5 +1,9 @@ import 'package:test/test.dart'; void main() { - group('CatalystVoicesViewModels', () {}); + group('catalyst_voices_view_models', () { + test('Dummy test', () { + expect(1 + 1, equals(2)); + }); + }); } diff --git a/catalyst_voices/pubspec.yaml b/catalyst_voices/pubspec.yaml index 8eb65dd770d..882df15472b 100644 --- a/catalyst_voices/pubspec.yaml +++ b/catalyst_voices/pubspec.yaml @@ -54,6 +54,7 @@ dev_dependencies: sdk: flutter mockito: ^5.4.4 mocktail: ^1.0.1 + test: ^1.24.9 flutter: uses-material-design: true diff --git a/catalyst_voices/test/app/view/app_test.dart b/catalyst_voices/test/app/view/app_test.dart index ab73b3a234a..69560e48044 100644 --- a/catalyst_voices/test/app/view/app_test.dart +++ b/catalyst_voices/test/app/view/app_test.dart @@ -1 +1,9 @@ -void main() {} +import 'package:test/test.dart'; + +void main() { + group('catalyst_voices', () { + test('Dummy test', () { + expect(1 + 1, equals(2)); + }); + }); +} diff --git a/catalyst_voices_packages/catalyst_analysis/example/melos_example.iml b/catalyst_voices_packages/catalyst_analysis/example/melos_catalyst_analysis_example.iml similarity index 100% rename from catalyst_voices_packages/catalyst_analysis/example/melos_example.iml rename to catalyst_voices_packages/catalyst_analysis/example/melos_catalyst_analysis_example.iml diff --git a/catalyst_voices_packages/catalyst_analysis/example/pubspec.yaml b/catalyst_voices_packages/catalyst_analysis/example/pubspec.yaml index 3b5ad986b44..4242d2551e4 100644 --- a/catalyst_voices_packages/catalyst_analysis/example/pubspec.yaml +++ b/catalyst_voices_packages/catalyst_analysis/example/pubspec.yaml @@ -1,4 +1,4 @@ -name: example +name: catalyst_analysis_example version: 1.0.0 description: A project that showcases how to enable the recommended lints for Catalyst Flutter apps, packages, and plugins. publish_to: none diff --git a/catalyst_voices_packages/catalyst_analysis/pubspec.yaml b/catalyst_voices_packages/catalyst_analysis/pubspec.yaml index 302fabebba1..50d949a7c5e 100644 --- a/catalyst_voices_packages/catalyst_analysis/pubspec.yaml +++ b/catalyst_voices_packages/catalyst_analysis/pubspec.yaml @@ -7,3 +7,6 @@ topics: [lints, analyzer, analysis] environment: sdk: '>=3.3.3 <4.0.0' + +dev_dependencies: + test: ^1.24.9 \ No newline at end of file diff --git a/melos.yaml b/melos.yaml index ce609be7880..1a9da44d8d7 100644 --- a/melos.yaml +++ b/melos.yaml @@ -51,16 +51,8 @@ scripts: Run `dart analyze` in all packages. - Note: you can also rely on your IDEs Dart Analysis / Issues window. - metrics: - run: | - melos exec -c 1 --ignore="*example*" -- \ - flutter pub run dart_code_metrics:metrics analyze - description: | - Run `dart_code_metrics` in all packages. - - Note: you can also rely on your IDEs Dart Analysis / Issues window. - test:select: - run: melos exec -- flutter test --test-randomize-ordering-seed random + run: melos exec --dir-exists="test" --fail-fast -- flutter test --test-randomize-ordering-seed random description: Run `flutter test` for selected packages. test: @@ -69,12 +61,21 @@ scripts: coverage: run: | - melos exec -- flutter test --coverage && - melos exec -- genhtml coverage/lcov.info --output-directory=coverage/ + melos exec --dir-exists="test" --fail-fast -- flutter test --no-pub --coverage + melos exec -c 1 --file-exists=coverage/lcov.info -- coverde filter --input ./coverage/lcov.info --output MELOS_ROOT_PATH/coverage/filtered.lcov.info --filters \.g\.dart + coverde report -i coverage/filtered.lcov.info description: Generate coverage for the selected package. - build:pub_get:all: + get_all: run: flutter pub get exec: concurrency: 6 - description: Install all dependencies \ No newline at end of file + description: Install all dependencies + + outdated: + run: | + melos exec -- flutter pub outdated && + melos exec -- flutter pub upgrade + exec: + concurrency: 6 + description: Update outdated dependencies \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index 1decd7e9e98..3ed6cb8158a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,4 +4,4 @@ environment: sdk: '>=3.3.3 <4.0.0' dev_dependencies: - melos: ^5.2.2 + melos: ^5.3.0 diff --git a/utilities/catalyst_voices_remote_widgets/pubspec.yaml b/utilities/catalyst_voices_remote_widgets/pubspec.yaml index 76fa84e835e..8146c7a3942 100644 --- a/utilities/catalyst_voices_remote_widgets/pubspec.yaml +++ b/utilities/catalyst_voices_remote_widgets/pubspec.yaml @@ -16,6 +16,7 @@ dependencies: dev_dependencies: catalyst_analysis: path: ../../catalyst_voices_packages/catalyst_analysis + test: ^1.24.9 flutter: uses-material-design: true diff --git a/utilities/catalyst_voices_remote_widgets/test/src/catalyst_voices_remote_widgets_test.dart b/utilities/catalyst_voices_remote_widgets/test/src/catalyst_voices_remote_widgets_test.dart index ab73b3a234a..419fca8fd4b 100644 --- a/utilities/catalyst_voices_remote_widgets/test/src/catalyst_voices_remote_widgets_test.dart +++ b/utilities/catalyst_voices_remote_widgets/test/src/catalyst_voices_remote_widgets_test.dart @@ -1 +1,9 @@ -void main() {} +import 'package:test/test.dart'; + +void main() { + group('catalyst_voices_remote_widgets_test', () { + test('Dummy test', () { + expect(1 + 1, equals(2)); + }); + }); +}