Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
minikin committed Apr 5, 2024
1 parent 2f86215 commit c638105
Show file tree
Hide file tree
Showing 13 changed files with 70 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -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));
});
});
}
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
void main() {}
import 'package:test/test.dart';

void main() {
group('catalyst_voices_models', () {
test('Dummy test', () {
expect(1 + 1, equals(2));
});
});
}
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
void main() {}
import 'package:test/test.dart';

void main() {
group('catalyst_voices_services', () {
test('Dummy test', () {
expect(1 + 1, equals(2));
});
});
}
Original file line number Diff line number Diff line change
@@ -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));
});
});
}
1 change: 1 addition & 0 deletions catalyst_voices/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 9 additions & 1 deletion catalyst_voices/test/app/view/app_test.dart
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
void main() {}
import 'package:test/test.dart';

void main() {
group('catalyst_voices', () {
test('Dummy test', () {
expect(1 + 1, equals(2));
});
});
}
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions catalyst_voices_packages/catalyst_analysis/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ topics: [lints, analyzer, analysis]

environment:
sdk: '>=3.3.3 <4.0.0'

dev_dependencies:
test: ^1.24.9
27 changes: 14 additions & 13 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
description: Install all dependencies

outdated:
run: |
melos exec -- flutter pub outdated &&
melos exec -- flutter pub upgrade
exec:
concurrency: 6
description: Update outdated dependencies
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ environment:
sdk: '>=3.3.3 <4.0.0'

dev_dependencies:
melos: ^5.2.2
melos: ^5.3.0
1 change: 1 addition & 0 deletions utilities/catalyst_voices_remote_widgets/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies:
dev_dependencies:
catalyst_analysis:
path: ../../catalyst_voices_packages/catalyst_analysis
test: ^1.24.9

flutter:
uses-material-design: true
Original file line number Diff line number Diff line change
@@ -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));
});
});
}

0 comments on commit c638105

Please sign in to comment.