2023-04-04 04:50:22 +00:00
|
|
|
import 'package:integration_test/integration_test.dart';
|
|
|
|
|
2023-10-25 15:33:46 +00:00
|
|
|
import 'appearance_settings_test.dart' as appearance_test_runner;
|
|
|
|
import 'board/board_test_runner.dart' as board_test_runner;
|
2023-11-28 02:54:31 +00:00
|
|
|
import 'database/database_calendar_test.dart' as database_calendar_test;
|
|
|
|
import 'database/database_cell_test.dart' as database_cell_test;
|
|
|
|
import 'database/database_field_settings_test.dart'
|
|
|
|
as database_field_settings_test;
|
|
|
|
import 'database/database_field_test.dart' as database_field_test;
|
|
|
|
import 'database/database_filter_test.dart' as database_filter_test;
|
|
|
|
import 'database/database_row_page_test.dart' as database_row_page_test;
|
|
|
|
import 'database/database_row_test.dart' as database_row_test;
|
|
|
|
import 'database/database_setting_test.dart' as database_setting_test;
|
|
|
|
import 'database/database_share_test.dart' as database_share_test;
|
|
|
|
import 'database/database_sort_test.dart' as database_sort_test;
|
|
|
|
import 'database/database_view_test.dart' as database_view_test;
|
2023-07-09 03:03:22 +00:00
|
|
|
import 'document/document_test_runner.dart' as document_test_runner;
|
2023-10-25 15:33:46 +00:00
|
|
|
import 'empty_test.dart' as first_test;
|
|
|
|
import 'hotkeys_test.dart' as hotkeys_test;
|
2023-07-09 03:03:22 +00:00
|
|
|
import 'import_files_test.dart' as import_files_test;
|
2023-11-08 23:32:10 +00:00
|
|
|
import 'settings/settings_runner.dart' as settings_test_runner;
|
2023-07-09 03:03:22 +00:00
|
|
|
import 'share_markdown_test.dart' as share_markdown_test;
|
2023-07-31 12:06:01 +00:00
|
|
|
import 'sidebar/sidebar_test_runner.dart' as sidebar_test_runner;
|
2023-10-25 15:33:46 +00:00
|
|
|
import 'switch_folder_test.dart' as switch_folder_test;
|
2023-08-08 05:09:17 +00:00
|
|
|
import 'tabs_test.dart' as tabs_test;
|
2024-02-16 17:47:23 +00:00
|
|
|
import 'emoji_shortcut_test.dart' as emoji_shortcut_test;
|
2023-11-25 09:18:31 +00:00
|
|
|
// import 'auth/supabase_auth_test.dart' as supabase_auth_test_runner;
|
2023-04-04 04:50:22 +00:00
|
|
|
|
|
|
|
/// The main task runner for all integration tests in AppFlowy.
|
|
|
|
///
|
|
|
|
/// Having a single entrypoint for integration tests is necessary due to an
|
|
|
|
/// [issue caused by switching files with integration testing](https://github.com/flutter/flutter/issues/101031).
|
|
|
|
/// If flutter/flutter#101031 is resolved, this file can be removed completely.
|
|
|
|
/// Once removed, the integration_test.yaml must be updated to exclude this as
|
|
|
|
/// as the test target.
|
2023-11-24 03:54:47 +00:00
|
|
|
Future<void> main() async {
|
2023-04-04 04:50:22 +00:00
|
|
|
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
2023-10-25 15:33:46 +00:00
|
|
|
|
|
|
|
// This test must be run first, otherwise the CI will fail.
|
|
|
|
first_test.main();
|
|
|
|
|
2023-04-04 04:50:22 +00:00
|
|
|
switch_folder_test.main();
|
2023-06-12 06:36:55 +00:00
|
|
|
share_markdown_test.main();
|
|
|
|
import_files_test.main();
|
2023-06-21 11:53:29 +00:00
|
|
|
|
|
|
|
// Document integration tests
|
2023-07-09 03:03:22 +00:00
|
|
|
document_test_runner.startTesting();
|
2023-06-20 15:48:34 +00:00
|
|
|
|
2023-07-31 12:06:01 +00:00
|
|
|
// Sidebar integration tests
|
|
|
|
sidebar_test_runner.startTesting();
|
|
|
|
|
2023-08-01 03:19:48 +00:00
|
|
|
// Board integration test
|
|
|
|
board_test_runner.startTesting();
|
|
|
|
|
2023-06-20 15:48:34 +00:00
|
|
|
// Database integration tests
|
2023-06-15 14:43:07 +00:00
|
|
|
database_cell_test.main();
|
|
|
|
database_field_test.main();
|
2023-09-01 16:42:46 +00:00
|
|
|
database_field_settings_test.main();
|
2023-06-15 14:43:07 +00:00
|
|
|
database_share_test.main();
|
|
|
|
database_row_page_test.main();
|
|
|
|
database_row_test.main();
|
|
|
|
database_setting_test.main();
|
|
|
|
database_filter_test.main();
|
2023-06-21 11:10:16 +00:00
|
|
|
database_sort_test.main();
|
2023-06-20 15:48:34 +00:00
|
|
|
database_view_test.main();
|
|
|
|
database_calendar_test.main();
|
|
|
|
|
2023-08-08 05:09:17 +00:00
|
|
|
// Tabs
|
|
|
|
tabs_test.main();
|
|
|
|
|
2023-08-13 09:14:58 +00:00
|
|
|
// Others
|
|
|
|
hotkeys_test.main();
|
2024-02-16 17:47:23 +00:00
|
|
|
emoji_shortcut_test.main();
|
2023-08-13 09:14:58 +00:00
|
|
|
|
2023-08-16 04:28:58 +00:00
|
|
|
// Appearance integration test
|
|
|
|
appearance_test_runner.main();
|
|
|
|
|
2023-10-02 05:55:57 +00:00
|
|
|
// User settings
|
2023-11-08 23:32:10 +00:00
|
|
|
settings_test_runner.main();
|
2023-10-02 05:55:57 +00:00
|
|
|
|
2023-06-11 06:19:44 +00:00
|
|
|
// board_test.main();
|
|
|
|
// empty_document_test.main();
|
|
|
|
// smart_menu_test.main();
|
2023-04-04 04:50:22 +00:00
|
|
|
}
|