mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-09 19:10:42 +00:00
e8acfc56b4
* Adding l10n screenshot tests for Fenix * fixing comments * fix klint and detekt error and adding all tests * better test name and doc added explaining tests
16 lines
1021 B
Markdown
16 lines
1021 B
Markdown
### Screenshtos Tests
|
|
We are using [`screengrab`](https://docs.fastlane.tools/getting-started/android/screenshots/) which works with fastlane to automate the process of capturing screenshots.
|
|
All the l10n screenshots are generated through the ui tests. These particular tests run as part of the screenshots package (`app/src/androidTest/mozilla/fenix/ui/screenshots`)
|
|
|
|
### Steps to Run / Build
|
|
1. Install the gem:
|
|
`sudo gem install screengrab`
|
|
|
|
2. From command line run:
|
|
`fastlane screengrab --test_instrumentation_runner "androidx.test.runner.AndroidJUnitRunner"`
|
|
|
|
Screenshots will be saved in the root directory: `fastlane/metadata/android`
|
|
If there is a failure and screenshots are not saved, it may be necessary to create these folders manually first.
|
|
Currently screenshots are uploaded to [`gcloud`](https://storage.googleapis.com/l10n-fenix/2019-06-21/screenshots.html) once they are generated manually by running the previous command line.
|
|
In the future this process will be automated too and documented here.
|