Skip to content

optionally send API requests to a mock URL #1012

@tomholub

Description

@tomholub

I understand we could probably do another build, to have eg enterprise/consumer/debug/mock builds where the mock build would have different URLs to call.

But that would mean we would have to build too apps for UI testing: both debug and mock if we want to test live as well as mocked version (which we do).

Is there a way to build one app but somehow toggle if it should use mock or live APIs? One idea is that the splash screen would have an actual toggle there, but that may make app code too complicated. Is there some way to run an app with parameters to one time tell it to use mock apis and other times not? (something like unix command line arguments)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions