Geocoder icon indicating copy to clipboard operation
Geocoder copied to clipboard

Add Faker provider

Open ker0x opened this issue 1 year ago • 3 comments

This PR introduce a faker provider using FakePHP. It's main purpose is to provide fake data during tests.

ker0x avatar Jan 31 '24 01:01 ker0x

Hello @ker0x, welcome to the project. I'm not exactly sure I understand the goal of that new provider, could you give us some use cases ? Thanks.

jbelien avatar Feb 05 '24 10:02 jbelien

@jbelien yes sure.

In my case, I have a listener on some of my entities that geocodes them each time they are created or updated. During my tests, I perform a lot of operations on these entities, and using a real provider slows down the tests because of HTTP calls. I don't particularly need the geocoded data to be accurate during tests, so having a provider with fake data saves me from making these HTTP calls (and it saves requests with some providers that have free request limits per month).

ker0x avatar Feb 05 '24 12:02 ker0x

@ker0x Could you please revert the changes to other files beside from your new provider, and rebase against master. This wil make the ci green.

Chris53897 avatar Mar 04 '24 16:03 Chris53897