Fix: use flutter test/flutter pub run instead of bare dart commands
The project depends on the Flutter SDK so dart pub/dart test fail with "version solving failed". Switch task:test to flutter test and task:codegen to flutter pub run build_runner. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
4e03483126
commit
662acb42cb
+3
-3
@@ -18,7 +18,7 @@ tasks:
|
||||
cmds:
|
||||
- |
|
||||
START=$(date +%s)
|
||||
dart run build_runner build --delete-conflicting-outputs
|
||||
flutter pub run build_runner build --delete-conflicting-outputs
|
||||
END=$(date +%s)
|
||||
echo "codegen: $((END - START))s"
|
||||
|
||||
@@ -39,12 +39,12 @@ tasks:
|
||||
- dart fix --apply
|
||||
|
||||
test:
|
||||
desc: Run pure-Dart unit tests (no device needed)
|
||||
desc: Run unit tests (no device needed)
|
||||
deps: [_nix-check]
|
||||
cmds:
|
||||
- |
|
||||
START=$(date +%s)
|
||||
dart test test/unit/
|
||||
flutter test test/unit/
|
||||
END=$(date +%s)
|
||||
echo "test: $((END - START))s"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user