avioli / uni_links

Flutter plugin for accepting incoming links.
BSD 2-Clause "Simplified" License
563 stars 303 forks source link

Make Universal Links testable #121

Open ChemoCosmo opened 3 years ago

ChemoCosmo commented 3 years ago

Is there a way to test Universal Link / Deep Link logic in the app with the flutter_test-Framework?

I'd like to write unit or UI tests for the universal link handling in my app. Is there a way to trigger the uriLinkStream or set a value forgetInitialUri() when pumping a widget?

If not, I would be happy if this feature could be added to the library.

brenodt commented 3 years ago

Same here. Seems to me that if the exposed functions/streams were part of an interface it would be much easier to test.