Add quality gates and baseline tests for web/mobile
This commit is contained in:
@@ -71,6 +71,7 @@ make mobile-staff-dev-android DEVICE=<device_id>
|
||||
- **Bootstrap**: `melos bootstrap` (Installs all dependencies)
|
||||
- **Generate All**: `melos run gen:all` (Localization + Code Generation)
|
||||
- **Analyze**: `melos run analyze:all`
|
||||
- **Test**: `melos run test:all`
|
||||
- **Help**: `melos run info` (Shows all available custom scripts)
|
||||
|
||||
## 🏗 Coding Principles
|
||||
|
||||
7
apps/mobile/apps/client/test/smoke_test.dart
Normal file
7
apps/mobile/apps/client/test/smoke_test.dart
Normal file
@@ -0,0 +1,7 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
test('client smoke test', () {
|
||||
expect(2 + 2, 4);
|
||||
});
|
||||
}
|
||||
7
apps/mobile/apps/staff/test/smoke_test.dart
Normal file
7
apps/mobile/apps/staff/test/smoke_test.dart
Normal file
@@ -0,0 +1,7 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
test('staff smoke test', () {
|
||||
expect(2 + 2, 4);
|
||||
});
|
||||
}
|
||||
@@ -78,6 +78,18 @@ melos:
|
||||
packageFilters:
|
||||
dependsOn: build_runner
|
||||
|
||||
analyze:all:
|
||||
run: |
|
||||
melos exec --scope="krowwithus_client" -- "flutter analyze"
|
||||
melos exec --scope="krowwithus_staff" -- "flutter analyze"
|
||||
description: "Run flutter analyze for both client and staff apps."
|
||||
|
||||
test:all:
|
||||
run: |
|
||||
melos exec --scope="krowwithus_client" -- "flutter test"
|
||||
melos exec --scope="krowwithus_staff" -- "flutter test"
|
||||
description: "Run flutter tests for both client and staff apps."
|
||||
|
||||
build:client:
|
||||
run: |
|
||||
melos run gen:l10n --filter="core_localization"
|
||||
|
||||
Reference in New Issue
Block a user