Тёмный

Integration Testing with Flutter 

Tadas Petra
Подписаться 32 тыс.
Просмотров 13 тыс.
50% 1

Опубликовано:

 

15 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 38   
@hermankravchenko6470
@hermankravchenko6470 3 года назад
Thank you for your video. It was very helpful and gives me more confidence to do testing in Flutter. Even if you told me the same info from flutter dev documentation. It makes more sense now!!
@tadaspetra
@tadaspetra 3 года назад
Glad I could help!
@husseinal-shammari5618
@husseinal-shammari5618 Год назад
Highly appreciate your videos man!!
@FlutterMapp
@FlutterMapp 2 года назад
thats firrrrrrrrrrrrre! 🔥🔥🔥🔥
@tadaspetra
@tadaspetra 2 года назад
Thanks bro 💪
@g4mrplays
@g4mrplays 4 года назад
Oo, missed opportunity to link to your other testing videos in the description + video annotation. I know we can just search, but that was the first thing I looked for when you mentioned it at the beginning of the video.
@tadaspetra
@tadaspetra 4 года назад
Thats a really good point, i will do that now 😊
@RickGladwin
@RickGladwin 2 года назад
Is there a best practice in Flutter for using a test database for integration testing? This is a nice introduction to integration testing, but I'd never want to use the primary production database for testing.
@ZohaibKhan-io3jz
@ZohaibKhan-io3jz Год назад
How to click on the checkbox showing over there? Please help me as I need to click on favorite button showing in grid view and I am unable to access it. Looking forward to your response.
@laugedyret
@laugedyret 5 месяцев назад
How can you run the same test in the Firebase Test Lab?
@prshendra
@prshendra 3 года назад
Clean tutorial 👍👍👍
@JeanPierreSchnyder
@JeanPierreSchnyder Год назад
Info given by ChatGPT4: As of my knowledge cutoff in September 2021, `flutter_driver` has been the traditional way of writing integration tests for Flutter apps. However, Flutter announced the `integration_test` package as the new way of testing, which is easier and more consistent with widget tests. Here are some differences and advantages between the two: 1. **Driver vs In-Process:** `flutter_driver` runs tests in a separate process, and communicates with the app-under-test over a JSON wire protocol. This can sometimes introduce complications with setup, latency, or issues with flakiness. On the other hand, `integration_test` runs the tests in the same process as the app, resulting in faster execution and simpler setup. 2. **Test Writing:** `flutter_driver` requires a more complex setup where you often end up with two separate files: one for the test app and another for the test scripts. With `integration_test`, the setup is simpler and the test code is more similar to unit and widget tests. 3. **Host Platform Support:** `integration_test` has broader support for running tests directly on different host platforms, including macOS, Windows, Linux, Web, Chrome, etc., as it doesn't require Flutter's test host tooling (like the `flutter drive` command). 4. **Tooling and Libraries:** `integration_test` can work with existing test libraries and tooling, and supports features like setup and teardown methods, the `testWidgets` function, and Flutter's widget testing environment in general. 5. **Migration and Compatibility:** As of my last update, `integration_test` is being favored over `flutter_driver` by the Flutter team, and it's likely that the latter will eventually be deprecated. The team has also provided a migration guide for moving `flutter_driver` tests to `integration_test`. 6. **Performance Profiling:** `flutter_driver` supports performance profiling of the app while running tests. As of my knowledge cutoff in September 2021, `integration_test` does not support this, although this may change in the future. Overall, it's recommended to use `integration_test` for new projects, and consider migrating existing `flutter_driver` tests to `integration_test` if feasible. This is because `integration_test` simplifies the process of writing integration tests, and aligns more closely with other types of Flutter testing. However, if your project relies heavily on performance profiling during test runs, you may want to stick with `flutter_driver` until such functionality is available in `integration_test`.
@samrashafique6155
@samrashafique6155 Год назад
Flutter Driver tests are being deprecated in favor of new Integration Tests
@SpookyHector
@SpookyHector 3 года назад
@TadasPetra can you help me with integration testing with datepicker? there is no key in datepicker? how can driver select date from picker?
@alirezarajaei1980
@alirezarajaei1980 3 года назад
That's perfect thank man
@parasarora4711
@parasarora4711 3 года назад
hey, I am getting this error every time I run command for testing. { Could not find a file named "pubspec.yaml" in "/home/paras/.pub-cache/hosted/pub.dartlang.org/_fe_analyzer_shared-12.0.0".} Pls help me out. the path is correct that's confirmed, getting the same error on all integration test repo
@tadaspetra
@tadaspetra 3 года назад
Where are you running the command?
@parasarora4711
@parasarora4711 3 года назад
@@tadaspetra thanks, I resolved this by deleting pub cache. actually, my pub cache was corrupted.
@alinasmirnova6621
@alinasmirnova6621 4 года назад
Can you create a video to show the same approach but using json maps as mocks?
@thomasmabika7291
@thomasmabika7291 4 года назад
so states_rebuilder added global functional injection, navigation support, dialog and snackbar features, how about a video series like the one you did with GetX? Seeing that the two are kinda of aiming for the same thing, I wonder which is better.
@tadaspetra
@tadaspetra 4 года назад
Thomas Mabika I've been planning on taking a look at that. But also I want to check out the get_cli and get_server and then Riverpod too. There's so much 😅
@thomasmabika7291
@thomasmabika7291 4 года назад
@@tadaspetra I say we start with states_rebuilder first, do 5 or so videos, then get_cli and server.... then if you really must, maybe Riverpod. What do ya think?
@tadaspetra
@tadaspetra 4 года назад
Thomas Mabika I appreciate that advise but I already got the other ones mostly planned out. And I still have a lot to learn and remember about states_rebuilder so that one will have to wait a bit. But I appreciate it 😊
@thomasmabika7291
@thomasmabika7291 4 года назад
@@tadaspetra in that case, I guess I'll just have to unsubscribe from the channel. Good luck. lol, just kidding, whatever decision you make mate, I'm just here for the content.
@tadaspetra
@tadaspetra 4 года назад
Thomas Mabika haha you got me there!
@alejosandu
@alejosandu 4 года назад
Could this be enough to just use this method instead of widget and unit testing?
@tadaspetra
@tadaspetra 4 года назад
Alejandro Sánchez Durán not really. Reach of them have their own purpose. For unit testing you can check all the error cases for each specific function, and same thing for widget tests. There are also a lot deeper you can go into the different types of testing and they each serve their own purpose. BUT I think if you were to only do one type of testing, I think integration testing covers the most parts with fewer lines of test code.
@alejosandu
@alejosandu 4 года назад
@@tadaspetra really cool, thanks!
@vincentmontano4518
@vincentmontano4518 4 года назад
Check the testing pyramid. You should have more unit test, moderate integration test and less widget test.
@howtosavealife3959
@howtosavealife3959 3 года назад
do you know how to show keyboard?
@RuchikaVerma-i2s
@RuchikaVerma-i2s Год назад
how to test login feature that requires microsoft authentication
@mohammedashique8923
@mohammedashique8923 3 года назад
Am got an error saying Error: Not found: 'dart.ui' Anyone have any idea how to resolve it?
@jdon144
@jdon144 2 года назад
Were you able to resolve this?
@arjunp9334
@arjunp9334 3 года назад
How can I create test reports for integration testing
@tadaspetra
@tadaspetra 3 года назад
I’m not too sure to be honest
@arjunp9334
@arjunp9334 3 года назад
@@tadaspetra ok pls post if u could find a solution thanks
@jags1230
@jags1230 3 года назад
@arjun you can use flutter junit pluginto create reports
@karolisabrutis6501
@karolisabrutis6501 4 года назад
Intergation testing makes me wet af!! You go girl, keep it up
Далее
Rendering - Flutter Deep Dive
8:28
Просмотров 10 тыс.
Part 5. Roblox trend☠️
00:13
Просмотров 3 млн
When To Unit, E2E, And Integration Test
14:58
Просмотров 99 тыс.
Widget Testing with Flutter
8:16
Просмотров 29 тыс.
Unit Tests and Mocking with Flutter
12:29
Просмотров 11 тыс.
Unit Test with Mockito in Flutter
11:26
Просмотров 3 тыс.