Help to run the Patrol examples #1039
-
Hi! I have tried to use Patrol in my projects, then I followed the instructions here (https://patrol.leancode.co/native/overview). However in all of them I got the error below: 'package:flutter/src/foundation/binding.dart': Failed assertion: line 149 pos 12: '_debugInitializedType == null': is not true. I suspected that I was missing something in my projects, then I decided to run the patrol examples (https://github.com/leancodepl/patrol/tree/master/packages/patrol/example) but to my surprise, I got the same error: Failed to load "/Users/cristiano/Downloads/patrol/patrol-master/packages/patrol/example/integration_test/open_app_test.dart": 'package:flutter/src/foundation/binding.dart': Failed assertion: line 149 pos 12: '_debugInitializedType == null': is not true. Am I missing some config in my setup? Any ideas about what is happening? Thanks in advance! Below some information about my setup: flutter doctor -v: [✓] Flutter (Channel stable, 3.7.6, on macOS 13.2.1 22D68 darwin-arm64, locale en-BR) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 14.2) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.3) [✓] IntelliJ IDEA Community Edition (version 2022.2.3) [✓] Connected device (3 available) [✓] HTTP Host Availability • No issues found! patrol --version: patrol_cli v1.0.5 Below the complete error when I tried to run the example 'open_app_test.dart': Testing started at 16:17 ... dart:core _AssertionError._throwNew Failed to load "/Users/cristiano/Downloads/patrol/patrol-master/packages/patrol/example/integration_test/open_app_test.dart": 'package:flutter/src/foundation/binding.dart': Failed assertion: line 149 pos 12: '_debugInitializedType == null': is not true. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi! What command are you executing to run the tests? Make sure to use patrol test. |
Beta Was this translation helpful? Give feedback.
Hi! What command are you executing to run the tests?
Make sure to use patrol test.