Commit c3eb918
authored
Android screenshot tests (#2809)
* Make the screenshot tests run in an off frame buffer and correct gamma issues in screenshots
* Make the definition of "the same" a bit more flexible to avoid instability in the pipelines
* Restore gamma correction
* Set the colourspace for the off renderTexture
* Set the Srgb for the off renderTexture
* Rebake minor visual changes for off frame buffer
* Rearrange for submodule screenshot structure
* Add in dependencies for android
* Bring it closer to the android initialiser project
* Temporarily use non local android jme
* Simple screenshot test
* Wait for emulator
* Dont save a snapshot, use mesa
* Make the emulator logs less likely to hang
* Bit closer to the android-emulator-runner docs
* Add logging in test
* Try a more modern pixel copy
* Capture logcat
* Only get my applications logcat
* Pull logs inside app step
* Prevent snapshots (which are erroring)
* Actually grab the logcat
* Use the actual location of the file
* Save file to public directory
* The whole logcat isn't too long
* Pull image from quoted location
* Whole log cat actually a bit much to put in github logs
* Use latch to wait explicitly for write to complete
* Clean up the test code
* Go back to scoped storage as permissions do not allow downloads folder
* Pull file from within test
* Use explicit file location
* Revert "Use explicit file location"
This reverts commit b0ed44d.
* Revert "Pull file from within test"
This reverts commit b9d850c.
* Avoid auto unistall (which means I can't get the file)
* Try to get JME to render into the test
* Fresh emulator every time
* Take the screenshot from the glSurfaceView
* Move the screenshot framework to a shared environment
* Extract out one of the tests ready for reuse
* Start introducing shared android screenshot functionality
* Allow for test scenarios to be booted to both android and desktop
* Start splitting out android specific elements
* Introduce androidx-storage to save the report persistently
* Change from BufferedImage to JME Image for android compatibility
* Work towards allowing android to write a proto report
* Hook in workflow for android screenshots
* Hook in workflow for android screenshots
* Clean up ExtentReportExtensionJunit4
* Avoid reuse of AssetManager (as we are registering random folders)
* Give gradle more heap for build (specifically for the android build)
* Remove redundant request to write to external storage
* Run the adb pulls even if the gradle step fails
* Add the upgrade step for the report
* Use more modern android for jackson support
* Use x86_64 android
* Use x86_64 android
* Even more modern android
* Try 35 as docs only go up to 35
* Remove the matrix as we only run one
* Install test services before running test
* Debug error codes
* Create report directory before pulling to it
* Format the android screenshot tests readme
* Error if upgrade of report fails
* Correct upgrade code to access the files with absolute paths
* Try to trap the error code better
* One giant line of doom
* One giant line of doom 2
* Just say -1 for a fail
* Ensure report has a title
* Reinstate deserialisation constructor
* Migrate all tests to be android & desktop tests
* Ensure that we get a single test report
* Run the whole thing in a single shell
* Include logcat
* Increase ram for emulator
* Allow app to have large heap
* Even larger heap
* Remove some of the more memory intensive tests
* Remove some more of the more memory intensive tests
* Correct the calculateImageFilePrefix so it is flexible to thread depth which android can mess with)
* Remove more memory intensive tests
* Try for a wider device
* Try to find available profiles
* Try to find available profiles
* Initialise the reference images
* Load references images from resources (to make android happy)
* Correct colours are ints, not bytes (as unsigned)
* Use consistent pixel comparison
* Log pixel errors
* Fix inverted "very similar" test
* Set android tests to only run on push
* Restore android harness as it was
* Self review
* Single subshell to avoid EOF issues
* Avoid richard actually being contacted by the message
* Wrap whole shell in a >
* Natives moved out of project
* More recent java version
* Update location of desktop screenshot tests
* Fix AndroidTestHarness for change in AndroidHarnessFragment
* Ensure file load still works for screenshot tests
* Move reference files within normal resources
* All desktop screenshot tests with their correct base
* Use same layout as in the android example
* Simpler layout
* Correct javadoc
* Correct attached image save location
* Gen the generated images back from the android run if they are different sizes
* .png suffix on changeed images
* Restore accidentally changed ScenarioPostWater values
* Rebake images at new size
* Rebake images at new size
* Add missing copywright notices
* Add missing reference images
* Don't prematurely fail test, allow all images to be collected
* Add missing images
* Replace ImagePixelWrapper with the Raster for more cross format pixel manipulation1 parent 4f2fe11 commit c3eb918
162 files changed
Lines changed: 4906 additions & 1904 deletions
File tree
- .github/workflows
- gradle
- jme3-screenshot-tests
- jme3-screenshot-tests-android
- src
- androidTest/java/org/jmonkeyengine/screenshottests/android
- android
- animation
- effects
- gui
- material
- model/shape
- post
- scene/instancing
- main
- java/org/jmonkeyengine/screenshottests/testframework
- resources
- res
- drawable-v24
- drawable
- layout
- mipmap-anydpi-v26
- mipmap-hdpi
- mipmap-mdpi
- mipmap-xhdpi
- mipmap-xxhdpi
- mipmap-xxxhdpi
- values-night
- values
- jme3-screenshot-tests-desktop
- src
- main
- java/org/jmonkeyengine/screenshottests/testframework/desktop
- resources
- test/java/org/jmonkeyengine/screenshottests
- animation
- effects
- export
- gui
- light/pbr
- material
- model/shape
- post
- scene/instancing
- terrain
- texture
- water
- jme3-screenshot-tests-proto-report
- src/main/java/org/jmonkeyengine/screenshottests/testframework/protoreport
- src
- main/java/org/jmonkeyengine/screenshottests/testframework
- test/java/org/jmonkeyengine/screenshottests
- export
- scene/instancing
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
| 54 | + | |
57 | 55 | | |
| 56 | + | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
22 | 35 | | |
23 | 36 | | |
24 | 37 | | |
| 38 | + | |
25 | 39 | | |
26 | 40 | | |
27 | 41 | | |
| |||
75 | 89 | | |
76 | 90 | | |
77 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
78 | 96 | | |
79 | 97 | | |
80 | 98 | | |
81 | 99 | | |
82 | 100 | | |
| 101 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
Lines changed: 68 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments