jonataslaw / getx

Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.
MIT License
10.35k stars 1.63k forks source link

get_test: Method not found: 'provideMockedNetworkImages' #2237

Open jordandevogelaere opened 2 years ago

jordandevogelaere commented 2 years ago

Describe the bug Failed to load tests when adding get_test: ^4.0.1 **Reproduction code

example:

testController<SignInController>(
      'Show error when email address is not valid',
      (controller) {
        controller.flowItem = SignInControllerFlowItem.email;
        controller.email = 'user@host';
        controller.onTappedContinue();
        expect(controller.flowItem, SignInControllerFlowItem.email);
        expect(controller.hasError.value, true);
      },
      controller: SignInController(),
    );

pubspec.yaml

dependencies: flutter: sdk: flutter flutter_web_plugins: sdk: flutter flutter_localizations: sdk: flutter intl: ^0.17.0 get: ^4.6.1 get_test: ^4.0.1

To Reproduce Steps to reproduce the behavior:

  1. Run unit tests

Expected behavior Unit tests run Screenshots

image

Flutter Version: 2.10.2

Getx Version: 4.6.1

Describe on which device you found the bug: N/A

Minimal reproduce code N/A

When I add the get_test dependency, compilation error appears.

Thx

Shreemanarjun commented 2 years ago

Please fix @jonataslaw.

stefandevo commented 2 years ago

+1 for fix @jonataslaw 🙏

tuanduongdn1504 commented 2 years ago

+1 for fix @jonataslaw

jordandevogelaere commented 2 years ago

@jonataslaw any update?

rizkitriandani commented 2 years ago

Still not fix? @jonataslaw

fahami commented 1 year ago

any update?

vstram commented 1 year ago

any update?

ghellrigl commented 1 year ago

Any update?

MostafaKhalile commented 1 year ago

@jonataslaw there is no way to test getviews and controllers