-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run multiple tests in firebase #1609
Comments
Hi, you need to add |
Hi @fylyppo, thanks for the quick response, i tried with the
|
Show me logs from FTL from each test |
java.lang.AssertionError: Dart test failed: tests.course_test When the exception was thrown, this was the stack: The test description was:
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═════════════════ When the exception was thrown, this was the stack: The test description was:
|
It looks like they have been run well. Try to set up results bucket to have screenrecordings and take a look what happened on the device |
@fylyppo i have set up the screenrecording, still the same issue. it will not even complete the atleast one |
Ok, but maybe now you have issues inside your tests? Does every test pump the app on the screen and tries to tap or checks something? Here's script we're using for FTL. |
@fylyppo yes every tests has await $.pump` patrol("Check Login functionality with multiple Scenarios", ($) async {
}); settings_test.dart ` patrol(
);` |
I experience the same issue |
The original issue is now solved ("unable to run multiple tests on firebase"). At this point, these issues are related to your tests failing. If you believe your tests are failing because of a bug in Patrol, file a new issue for your specific problem and fill out the template. |
Also, please learn how to paste code correctly on GitHub. |
@bartekpacia tests are not failing, if i run the individual tests in the firebase, thats getting passed. |
Can you show me what's in "View issues"? |
Are you sure you're using |
yes i am using the flag, please find the below command
|
Hm, here you can check our GHA workflow with Firebase Test Lab and here our |
@fylyppo thanks a lot . |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue. |
Steps to reproduce
Steps to Reproduce:
Build multiple _test.dart files
example:command:
patrol build android -v --target --target integration_test\tests\login_test.dart,integration_test\tests\settings_test.dart,integration_test\tests\forgot_password_test.dart,integration_test\tests\course_test.dart -dart-define=FLAVOR=dev
Run tests in firebase
gcloud firebase test android run --type instrumentation --app build/app/outputs/apk/dev/debug/app-dev-debug.apk --test build/app/outputs/apk/androidTest/dev/debug/app-dev-debug-androidTest.apk --device=model=redfin,version=30,orientation=portrait --timeout 45m
Actual results
login_test executed successfully. But other 3 testcases are failed.
io.grpc.StatusRuntimeException: UNKNOWN: 'package:patrol/src/native/patrol_app_service.dart': Failed assertion: line 129 pos 12: '_testExecutionCompleted.isCompleted == false': is not true.
at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:271)
at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:252)
at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:165)
at pl.leancode.patrol.contracts.PatrolAppServiceGrpc$PatrolAppServiceBlockingStub.runDartTest(PatrolAppServiceGrpc.java:215)
at pl.leancode.patrol.PatrolAppServiceClient.runDartTest(PatrolAppServiceClient.java:40)
at pl.leancode.patrol.PatrolJUnitRunner.runDartTest(PatrolJUnitRunner.java:128)
at pl.leancode.patrol.example.MainActivityTest.runDartTest(MainActivityTest.java:30)
Logs
Logs
Patrol version
You're using Patrol CLI 2.0, which has breaking changes.
Read the migration guide at https://patrol.leancode.co/v2.
Disable this warning by setting the PATROL_MIGRATED environment variable.
patrol_cli v2.1.0
Patrol Doctor output
You're using Patrol CLI 2.0, which has breaking changes.
Read the migration guide at https://patrol.leancode.co/v2.
Disable this warning by setting the PATROL_MIGRATED environment variable.
Patrol CLI version: 2.1.0
Program adb found in C:\Users\achannav\scoop\shims\adb.exe
Env var $ANDROID_HOME set to C:\Users\achannav\AppData\Local\Android\sdk
Flutter Doctor output
[√] Flutter (Channel stable, 3.10.6, on Microsoft Windows [Version 10.0.19045.3208], locale en-US)
• Flutter version 3.10.6 on channel stable at C:\Users\achannav\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision f468f3366c (4 weeks ago), 2023-07-12 15:19:05 -0700
• Engine revision cdbeda788a
• Dart version 3.0.6
• DevTools version 2.23.1
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
• Android SDK at C:\Users\achannav\AppData\Local\Android\sdk
• Platform android-33-ext4, build-tools 33.0.2
• ANDROID_HOME = C:\Users\achannav\AppData\Local\Android\sdk
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2022.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619)
[√] IntelliJ IDEA Community Edition (version 2021.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2021.3
• Flutter plugin version 72.1.5
• Dart plugin version 231.8109.91
[√] VS Code (version 1.81.0)
• VS Code at C:\Users\achannav\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.70.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.3208]
• Chrome (web) • chrome • web-javascript • Google Chrome 115.0.5790.111
• Edge (web) • edge • web-javascript • Microsoft Edge 115.0.1901.188
[√] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.
The text was updated successfully, but these errors were encountered: