Browse Source

nextcloud: Use separate test suites to leverage concurrency

pull/416/head
jld3103 2 years ago
parent
commit
aec44f5302
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 2
      melos.yaml
  2. 0
      packages/nextcloud/test/core_test.dart
  3. 21
      packages/nextcloud/test/main_test.dart
  4. 0
      packages/nextcloud/test/news_test.dart
  5. 0
      packages/nextcloud/test/notes_test.dart
  6. 0
      packages/nextcloud/test/notifications_test.dart
  7. 0
      packages/nextcloud/test/provisioning_api_test.dart
  8. 0
      packages/nextcloud/test/uppush_test.dart
  9. 0
      packages/nextcloud/test/user_status_test.dart
  10. 0
      packages/nextcloud/test/webdav_test.dart

2
melos.yaml

@ -21,4 +21,4 @@ ide:
scripts:
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"
test: melos exec --concurrency=1 --fail-fast --dir-exists=test -- "flutter test --concurrency=$(nproc --all)"

0
packages/nextcloud/test/core.dart → packages/nextcloud/test/core_test.dart

21
packages/nextcloud/test/main_test.dart

@ -1,21 +0,0 @@
import 'core.dart' as core;
import 'helper.dart';
import 'news.dart' as news;
import 'notes.dart' as notes;
import 'notifications.dart' as notifications;
import 'provisioning_api.dart' as provisioning_api;
import 'uppush.dart' as uppush;
import 'user_status.dart' as user_status;
import 'webdav.dart' as webdav;
Future main() async {
final image = await getDockerImage();
await core.run(image);
await news.run(image);
await notes.run(image);
await notifications.run(image);
await provisioning_api.run(image);
await uppush.run(image);
await user_status.run(image);
await webdav.run(image);
}

0
packages/nextcloud/test/news.dart → packages/nextcloud/test/news_test.dart

0
packages/nextcloud/test/notes.dart → packages/nextcloud/test/notes_test.dart

0
packages/nextcloud/test/notifications.dart → packages/nextcloud/test/notifications_test.dart

0
packages/nextcloud/test/provisioning_api.dart → packages/nextcloud/test/provisioning_api_test.dart

0
packages/nextcloud/test/uppush.dart → packages/nextcloud/test/uppush_test.dart

0
packages/nextcloud/test/user_status.dart → packages/nextcloud/test/user_status_test.dart

0
packages/nextcloud/test/webdav.dart → packages/nextcloud/test/webdav_test.dart

Loading…
Cancel
Save