Browse Source

test(dynamite_end_to_end_test): migrate to dart test configuration

Signed-off-by: Nikolas Rimikis <leptopoda@users.noreply.github.com>
pull/1035/head
Nikolas Rimikis 1 year ago
parent
commit
329adc731f
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 3
      .github/workflows/dart.yml
  2. 3
      melos.yaml
  3. 1
      packages/dynamite/dynamite_end_to_end_test/dart_test.yaml
  4. 2
      packages/dynamite/dynamite_end_to_end_test/test/ensure_validity_test.dart
  5. 5
      tool/dart_test_base.yaml

3
.github/workflows/dart.yml

@ -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
melos.yaml

@ -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
packages/dynamite/dynamite_end_to_end_test/dart_test.yaml

@ -0,0 +1 @@
include: ../../../tool/dart_test_base.yaml

2
packages/dynamite/dynamite_end_to_end_test/test/ensure_validity_test.dart

@ -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
tool/dart_test_base.yaml

@ -0,0 +1,5 @@
tags:
integration:
retry: 3
source_verification:
timeout: 20x
Loading…
Cancel
Save