jerboa icon indicating copy to clipboard operation
jerboa copied to clipboard

Added unit tests for easy-to-test utils

Open beatgammit opened this issue 2 years ago • 6 comments

Also includes some small changes, fixes, and comments here and there.

I still need to figure out how to write tests for the UI, but hopefully this helps a little.

beatgammit avatar Jun 14 '23 07:06 beatgammit

I got some examples on how to test the UI in my benchmarks pr, but UiAutomator2 is not 100% reliable though

MV-GH avatar Jun 14 '23 07:06 MV-GH

Awesome, I'll check out that branch and try running your examples while I'm at it.

beatgammit avatar Jun 14 '23 07:06 beatgammit

They are not unit tests though but its the same way you can do Ui testing through UiAutomator2

MV-GH avatar Jun 14 '23 07:06 MV-GH

Mark this as ready to review, when its good to go.

dessalines avatar Jun 14 '23 13:06 dessalines

I think he is gonna add those others tests in a different pr and this is ready

MV-GH avatar Jun 14 '23 13:06 MV-GH

This also needs the gradle tests to be added to our .woodpecker.yml file.

Add a separate CI step containing ./gradlew testDebug

dessalines avatar Jun 14 '23 13:06 dessalines

Woodpecker config added and tests pass. I'm going to look into UI tests in a bit, but not as part of this PR.

beatgammit avatar Jun 14 '23 23:06 beatgammit