Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Conversation

@d4rken
Copy link
Member

@d4rken d4rken commented Nov 24, 2020

As it's currently way too complicated to get the app into risk states with encounters to test various app behaviors, I wrote this test feature which I think would be useful for everyone else too.

The deviceForTesters flavor has a different ExposureWindowsProvider.
Depending on which debug option was chosen exposure windows window data will be loaded from json files and then returned via the ENFClient.

From the apps perspective it will look like Googles exposure detection calculated windows with low/high risk encounters after the last submission.

Based on @bmitter ExposureWindowProvider and @mlenkeit ExposureWindow test data concepts.

Testing

  • Check that in deviceForTesters the option is there, and that in device the whole code is not included.

Screenshot from 2020-11-24 09-20-23

@d4rken d4rken added enhancement Improvement of an existing feature maintainers Tag pull requests created by maintainers labels Nov 24, 2020
@d4rken d4rken added this to the 1.8.0 milestone Nov 24, 2020
@d4rken d4rken requested a review from a team November 24, 2020 08:39
@ralfgehrer ralfgehrer self-assigned this Nov 24, 2020
@chris-cwa chris-cwa self-assigned this Nov 24, 2020
@BMItr
Copy link
Contributor

BMItr commented Nov 24, 2020

tested on Pixel 2 Device. Code is excluded to deviceForTesters correctly but TestSettings.kt (necessarily).

One optional suggestion:
Could we change the list order to assending? (Disabled->Low->High)

@d4rken
Copy link
Member Author

d4rken commented Nov 24, 2020

One optional suggestion:
Could we change the list order to assending? (Disabled->Low->High)

Sure maybe not now? Don't want to delay the PR. The next person that adds a new fake data, can change the orders I just added some defaults, might not cover all UI states we need.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@d4rken d4rken merged commit f42c717 into release/1.8.x Nov 24, 2020
@d4rken d4rken deleted the feature/dev-fake-exposure-windows branch November 24, 2020 11:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement Improvement of an existing feature maintainers Tag pull requests created by maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants