Skip to content

Commit

Permalink
fix(tool): Run all tests using flutter
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed Apr 3, 2024
1 parent 30fade2 commit a590fe2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
12 changes: 2 additions & 10 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,7 @@ scripts:
test: >
melos run test:dart &&
melos run test:flutter
test:dart: >
melos exec --no-flutter --concurrency=1 --fail-fast --dir-exists=test -- "
dart run --pause-isolates-on-exit --disable-service-auth-codes --enable-vm-service=8181 test --concurrency=$(nproc --all) --fail-fast &
dart pub global run coverage:collect_coverage --wait-paused --uri=http://127.0.0.1:8181/ -o coverage/coverage.json --resume-isolates --scope-output=foo
dart pub global run coverage:format_coverage --packages=.dart_tool/package_config.json --lcov -i coverage/coverage.json -o coverage/lcov.info
"
test:flutter: >
melos exec --flutter --concurrency=1 --fail-fast --dir-exists=test -- "
flutter test --concurrency=$(nproc --all) --coverage
"
test:dart: melos exec --no-flutter --concurrency=1 --fail-fast --dir-exists=test -- flutter test --concurrency=$(nproc --all) --coverage
test:flutter: melos exec --flutter --concurrency=1 --fail-fast --dir-exists=test -- flutter test --concurrency=$(nproc --all) --coverage
generate:neon:build_runner: melos exec --scope="neon*" --file-exists="build.yaml" -- dart run build_runner build --delete-conflicting-outputs && melos run format
generate:neon:l10n: melos exec --flutter --dir-exists="lib/l10n" flutter gen-l10n && melos run format
1 change: 0 additions & 1 deletion packages/nextcloud/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ dependencies:
dev_dependencies:
build_runner: ^2.4.9
built_value_generator: ^8.9.2
coverage: ^1.7.2
dynamite: ^0.2.0
json_serializable: ^6.7.1
mocktail: ^1.0.3
Expand Down
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ environment:

dev_dependencies:
commitlint_cli: ^0.7.1
coverage: ^1.7.2
fvm: ^3.1.3
husky: ^0.1.7
melos: ^5.3.0
Expand Down

0 comments on commit a590fe2

Please sign in to comment.