Skip to content

Commit 2e950bb

Browse files
committed
[green] Register one Android integration entrypoint
Signed-off-by: Viwat Vchirawongkwin <viwat.v@chula.ac.th>
1 parent bf65d06 commit 2e950bb

4 files changed

Lines changed: 11 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,9 @@ jobs:
441441
shell: bash
442442
run: |
443443
set -euo pipefail
444-
timeout --signal=TERM --kill-after=30s 20m \
444+
timeout --signal=TERM --kill-after=30s 30m \
445445
flutter test \
446+
--no-pub \
446447
integration_test/android_smoke_test.dart \
447448
-d "$PYBLE_ANDROID_SERIAL" \
448449
--reporter expanded \

app/integration_test/about_page_test.dart renamed to app/integration_test/about_page_suite.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,14 @@
55

66
import 'package:flutter/material.dart';
77
import 'package:flutter_test/flutter_test.dart';
8-
import 'package:integration_test/integration_test.dart';
98
import 'package:package_info_plus/package_info_plus.dart';
109

1110
import 'package:pyble/app/licenses.dart';
1211
import 'package:pyble/app/pages/about_page.dart';
1312
import 'package:pyble/localization/localization.dart';
1413
import 'package:pyble/theme/theme.dart';
1514

16-
void main() {
17-
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
18-
15+
void registerAboutPageIntegrationTests() {
1916
testWidgets('installed package metadata and licenses render offline', (
2017
WidgetTester tester,
2118
) async {

app/integration_test/android_smoke_test.dart

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
// One Android application bundle for the real package-metadata and Blockly
55
// platform-WebView smoke tests. Flutter builds once per integration test file.
66

7-
import 'about_page_test.dart' as about_page;
8-
import 'blockly_webview_test.dart' as blockly_webview;
7+
import 'package:integration_test/integration_test.dart';
8+
9+
import 'about_page_suite.dart' as about_page;
10+
import 'blockly_webview_suite.dart' as blockly_webview;
911

1012
void main() {
11-
about_page.main();
12-
blockly_webview.main();
13+
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
14+
about_page.registerAboutPageIntegrationTests();
15+
blockly_webview.registerBlocklyWebViewIntegrationTests();
1316
}

app/integration_test/blockly_webview_test.dart renamed to app/integration_test/blockly_webview_suite.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import 'dart:typed_data';
77
import 'package:flutter/material.dart';
88
import 'package:flutter_riverpod/flutter_riverpod.dart';
99
import 'package:flutter_test/flutter_test.dart';
10-
import 'package:integration_test/integration_test.dart';
1110

1211
import 'package:pyble/app/providers.dart';
1312
import 'package:pyble/blocks/blocks.dart';
@@ -298,9 +297,7 @@ Widget _testApp(ProviderContainer container, {required bool showBlocks}) {
298297
);
299298
}
300299

301-
void main() {
302-
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
303-
300+
void registerBlocklyWebViewIntegrationTests() {
304301
testWidgets(
305302
'real offline WebView restores Blocks, generates Python, saves, and runs',
306303
(WidgetTester tester) async {

0 commit comments

Comments
 (0)