Skip to content

Commit

Permalink
test(dynamite_end_to_end_test): migrate to dart test configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolas Rimikis <[email protected]>
  • Loading branch information
Leptopoda committed Oct 26, 2023
1 parent ab10025 commit 329adc7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ jobs:
if [ -z "$packages" ]; then exit 0; fi
packages_glob="$(printf ",%s" "${packages[@]}")"
packages_glob="${packages_glob:1}"
melos exec --scope="$packages_glob" --concurrency=1 --fail-fast --dir-exists=test -- "flutter test --concurrency=$(nproc --all)"
melos exec --scope="$packages_glob" --concurrency=1 --fail-fast --dir-exists=test -- "flutter test --concurrency=$(nproc --all) -x source_verification"
melos exec --scope="$packages_glob" --concurrency=1 --fail-fast --dir-exists=test --file-exists=dart_test.yaml -- "flutter test --concurrency=1 -t source_verification"
3 changes: 2 additions & 1 deletion melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ scripts:
format: dart format --fix --line-length 120 .
format:check: dart format --output=none --set-exit-if-changed --line-length 120 .
analyze: dart analyze --fatal-infos .
test: melos exec --concurrency=1 --fail-fast --dir-exists=test -- "flutter test --concurrency=$(nproc --all)"
test: melos exec --concurrency=1 --fail-fast --dir-exists=test -- "flutter test --concurrency=$(nproc --all) -x source_verification"
test:source_verification: melos exec --concurrency=1 --fail-fast --dir-exists=test --file-exists=dart_test.yaml -- "flutter test --concurrency=1 -t source_verification"
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: 1 addition & 0 deletions packages/dynamite/dynamite_end_to_end_test/dart_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include: ../../../tool/dart_test_base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ void main() {
packageRelativeDirectory: 'packages/dynamite/dynamite_end_to_end_test',
customCommand: ['bash', 'generate.sh'],
),
timeout: const Timeout.factor(2),
tags: 'source_verification',
);
}
5 changes: 5 additions & 0 deletions tool/dart_test_base.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
tags:
integration:
retry: 3
source_verification:
timeout: 20x

0 comments on commit 329adc7

Please sign in to comment.