Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Pass environment variables #167

Open
QAutomatron opened this issue Jan 20, 2020 · 0 comments
Open

Pass environment variables #167

QAutomatron opened this issue Jan 20, 2020 · 0 comments

Comments

@QAutomatron
Copy link
Contributor

QAutomatron commented Jan 20, 2020

How can I pass environment parameters to all tests run through the fork (using gradle plugin)?

I mean the ones are usually pass as testInstrumentationRunnerArguments. Parameters like clearPackageData: 'true' or custom ones like foo: bar, so in test i can get them using: InstrumentationRegistry.getArguments().getString("foo").
Seems that fork ignores params from testInstrumentationRunnerArguments and return just null

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant