flutter-test Questions
4
Unhandled Exception: PlatformException(storekit_duplicate_product_object, There is a pending transaction for the same product identifier. Please either wait for it to be finished or finish it manue...
Disposed asked 19/7, 2022 at 4:30
3
I am writing widget tests in Flutter. I am not able to find any documentation to execute "Go Back to Prevoius Screen" as I do not find any method for that. Please help with some sample "test" code ...
Skees asked 31/8, 2018 at 3:5
3
Solved
I've been using flutter_dotenv to load environment variables saved in .env throughout the application and it's worked just fine to date. As I'm trying to write tests though, I cannot seem to access...
Haemoglobin asked 14/3, 2020 at 19:53
2
Solved
With a Flutter WidgetTester how can you tap on a TextSpan, like in the code below?
RichText(
text: TextSpan(
children: [
TextSpan(text: 'aaa '),
TextSpan(
text: 'bbb ',
recognizer: TapGestur...
Wish asked 16/2, 2020 at 10:1
3
Solved
I am making use of golden image tests for simple stateless widgets in flutter. Every few test runs, I get the following error printed to console:
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═══...
Tema asked 24/6, 2020 at 9:9
1
i want to display a global overlay loading instance in my main app widget
it works fine inside materialApp but when i used go router and turn it into MaterialApp.router
the state is changed but the...
Croteau asked 28/11, 2022 at 10:28
31
Solved
I've just tried to install Flutter on Linux and when I try to run a flutter command (flutter doctor), I'm getting
Error: Unable to find git in your PATH.
How can I solve this?
Macfadyn asked 10/7, 2018 at 10:56
4
Solved
I do have a Snackbar with a SnackbarAction which should open the default email app with a default subject and body on tap. I am wondering if there is somehow the possibility to verify if this reall...
Roxyroy asked 25/2, 2019 at 15:8
15
I'm having this issue when I've added http dependency in my flutter project. Can anyone please help me with it?
Erotic asked 1/11, 2018 at 7:27
4
Solved
I am trying to test a custom drawer but find it hard opening it in the test, tried the following to begin with and even this test doesn't pass. The error is: Bad state: no element.
void main() {
...
Baring asked 14/11, 2018 at 11:23
2
Solved
I would like to select a date through date picker as part of a flutter driver test. however, I can't seem to figure out exactly how I would do this?
I've tried using a find.textandfind.bySemantics...
Pren asked 8/10, 2019 at 7:48
2
Solved
My one test file with 7 empty tests is taking 5+ seconds to start running. I've used both flutter test and the Dart test runner in VS Code, and they both take about the same amount of time.
My whol...
Clonus asked 29/5, 2022 at 15:28
2
How to run multiple test cases of Flutter integration tests in single command or from single file.
1. If I run two separate commands for two files then report generates only for last command.
2. ...
Tantalite asked 22/11, 2019 at 6:32
6
Solved
I am using CoinMarketCap API to fetch coin's data from server ,so i have a problem !
Android studio give me this message:
type 'int' is not a subtype of type 'double'
My problem almost from my m...
Distract asked 9/6, 2020 at 18:54
2
Solved
Consider the following test code ...
main() {
StreamController controller;
setUp(() {
controller = StreamController.broadcast(sync: false);
});
tearDown(() {
controller.close();
});
test...
Dneprodzerzhinsk asked 16/6, 2019 at 18:25
6
How to go back to previous screen when no back button available on screen?
Additional Information: I am trying to automate integration testing for flutter app. There is no back button on screen wh...
Aqueous asked 26/11, 2019 at 6:17
3
Solved
Can someone show me how to implement overriding flutter errors during widget test so I can check for my own custom errors.
I have seen snippets online mentioning this but all of my implementations...
Afoul asked 21/1, 2019 at 17:2
5
Solved
I am creating an Image Editor application using sliders, something like Instagram, and I am using library image/image.dart.
The problem is that once you move the slider it updates the image but jus...
Ellett asked 11/11, 2019 at 0:14
3
In my State class I have declared a future:
Future<void> _testFuture;
and assign it in the initState like this:
super.initState();
_testFuture = Future(() async {
await Future.value(1); //...
Raper asked 8/2, 2021 at 2:36
2
In my flutter code, I have logic that does this:
final jsonString = await rootBundle.loadString('AssetManifest.json');
And I have tests that I want to return a fake AssetManifest.json when this...
Estradiol asked 5/2, 2020 at 16:1
19
Solved
When I perform a flutter run I get an error
Target file "lib/main.dart" not found.
Why is this happening and how can I fix this ?
Grappling asked 25/5, 2018 at 5:35
5
I am trying to exclude few config files from the test coverage results in the flutter test results. When I run flutter test --coverage, the output file icov.info is having information about the con...
Parlance asked 6/12, 2018 at 10:18
1
Is it possible to generate test golden files(images) when running an integration test in Flutter?
I'm able to generate the golden files when I run flutter test --update-goldens which happens not to...
Farci asked 7/2, 2022 at 19:15
4
Solved
I have upgraded the pub yaml to the major version flutter pub upgrade --major versions and it gave me a lot of suggestions error I don’t understand why?. Can someone explain?
And this is for an exa...
Saturate asked 5/6, 2022 at 5:34
5
My widget test is failing after the following warning is outputted:
flutter: Warning: A call to tap() with finder "exactly one widget with text "Tab 2" (ignoring offstage widgets): ...
Leslee asked 13/7, 2021 at 16:23
1 Next >
© 2022 - 2024 — McMap. All rights reserved.