From aec44f5302e52ec86490befb722f21c221d6a058 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sun, 25 Jun 2023 09:37:55 +0200 Subject: [PATCH] nextcloud: Use separate test suites to leverage concurrency --- melos.yaml | 2 +- .../test/{core.dart => core_test.dart} | 0 packages/nextcloud/test/main_test.dart | 21 ------------------- .../test/{news.dart => news_test.dart} | 0 .../test/{notes.dart => notes_test.dart} | 0 ...fications.dart => notifications_test.dart} | 0 ...ng_api.dart => provisioning_api_test.dart} | 0 .../test/{uppush.dart => uppush_test.dart} | 0 ...user_status.dart => user_status_test.dart} | 0 .../test/{webdav.dart => webdav_test.dart} | 0 10 files changed, 1 insertion(+), 22 deletions(-) rename packages/nextcloud/test/{core.dart => core_test.dart} (100%) delete mode 100644 packages/nextcloud/test/main_test.dart rename packages/nextcloud/test/{news.dart => news_test.dart} (100%) rename packages/nextcloud/test/{notes.dart => notes_test.dart} (100%) rename packages/nextcloud/test/{notifications.dart => notifications_test.dart} (100%) rename packages/nextcloud/test/{provisioning_api.dart => provisioning_api_test.dart} (100%) rename packages/nextcloud/test/{uppush.dart => uppush_test.dart} (100%) rename packages/nextcloud/test/{user_status.dart => user_status_test.dart} (100%) rename packages/nextcloud/test/{webdav.dart => webdav_test.dart} (100%) diff --git a/melos.yaml b/melos.yaml index 50d3d8c6..aa7b8315 100644 --- a/melos.yaml +++ b/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)" diff --git a/packages/nextcloud/test/core.dart b/packages/nextcloud/test/core_test.dart similarity index 100% rename from packages/nextcloud/test/core.dart rename to packages/nextcloud/test/core_test.dart diff --git a/packages/nextcloud/test/main_test.dart b/packages/nextcloud/test/main_test.dart deleted file mode 100644 index 253d5a05..00000000 --- a/packages/nextcloud/test/main_test.dart +++ /dev/null @@ -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); -} diff --git a/packages/nextcloud/test/news.dart b/packages/nextcloud/test/news_test.dart similarity index 100% rename from packages/nextcloud/test/news.dart rename to packages/nextcloud/test/news_test.dart diff --git a/packages/nextcloud/test/notes.dart b/packages/nextcloud/test/notes_test.dart similarity index 100% rename from packages/nextcloud/test/notes.dart rename to packages/nextcloud/test/notes_test.dart diff --git a/packages/nextcloud/test/notifications.dart b/packages/nextcloud/test/notifications_test.dart similarity index 100% rename from packages/nextcloud/test/notifications.dart rename to packages/nextcloud/test/notifications_test.dart diff --git a/packages/nextcloud/test/provisioning_api.dart b/packages/nextcloud/test/provisioning_api_test.dart similarity index 100% rename from packages/nextcloud/test/provisioning_api.dart rename to packages/nextcloud/test/provisioning_api_test.dart diff --git a/packages/nextcloud/test/uppush.dart b/packages/nextcloud/test/uppush_test.dart similarity index 100% rename from packages/nextcloud/test/uppush.dart rename to packages/nextcloud/test/uppush_test.dart diff --git a/packages/nextcloud/test/user_status.dart b/packages/nextcloud/test/user_status_test.dart similarity index 100% rename from packages/nextcloud/test/user_status.dart rename to packages/nextcloud/test/user_status_test.dart diff --git a/packages/nextcloud/test/webdav.dart b/packages/nextcloud/test/webdav_test.dart similarity index 100% rename from packages/nextcloud/test/webdav.dart rename to packages/nextcloud/test/webdav_test.dart