Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added unit tests for easy-to-test utils #629

Merged
merged 3 commits into from
Jun 15, 2023

Conversation

beatgammit
Copy link
Contributor

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.

@MV-GH
Copy link
Collaborator

MV-GH commented Jun 14, 2023

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

@beatgammit beatgammit force-pushed the feat/add-unit-tests-and-coverage branch 3 times, most recently from 87ca05c to 39e3b46 Compare June 14, 2023 07:29
@beatgammit
Copy link
Contributor Author

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

@MV-GH
Copy link
Collaborator

MV-GH commented Jun 14, 2023

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

@beatgammit beatgammit force-pushed the feat/add-unit-tests-and-coverage branch from 39e3b46 to 0036bca Compare June 14, 2023 09:56
@dessalines dessalines marked this pull request as draft June 14, 2023 13:16
@dessalines
Copy link
Member

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

@MV-GH
Copy link
Collaborator

MV-GH commented Jun 14, 2023

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

@dessalines
Copy link
Member

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

Add a separate CI step containing ./gradlew testDebug

@beatgammit beatgammit force-pushed the feat/add-unit-tests-and-coverage branch 3 times, most recently from ecf1159 to de70cce Compare June 14, 2023 23:35
Also includes some small changes, fixes, and comments here and there.
Also ignore the example unit tests.
@beatgammit beatgammit force-pushed the feat/add-unit-tests-and-coverage branch from de70cce to 9243b49 Compare June 14, 2023 23:44
@beatgammit beatgammit marked this pull request as ready for review June 14, 2023 23:57
@beatgammit
Copy link
Contributor Author

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

Copy link
Member

@dessalines dessalines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@dessalines dessalines merged commit 241c384 into LemmyNet:main Jun 15, 2023
@beatgammit beatgammit deleted the feat/add-unit-tests-and-coverage branch June 15, 2023 13:01
Chris-Kropp pushed a commit to Chris-Kropp/jerboa that referenced this pull request Jun 16, 2023
* Added unit tests for easy-to-test utils

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

* Enable unit tests in CI

Also ignore the example unit tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants