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 Instrumentation Test and Unit Tests #3310

Merged
merged 5 commits into from
Sep 19, 2023
Merged

Conversation

Smarshal21
Copy link
Member

Added Instrumentation Test For VibrationUtils and Unit Tests for other files mentioned below.

  • VibrationUtils
  • BundleKeys
  • UriUtils
  • DataChannelMessageNotifier
  • Globals
  • PeerConnectionNotifier

@mahibi
Copy link
Collaborator

mahibi commented Sep 12, 2023

lgtm, thanks!

just as a reminder now that you use the original repo: to update the branch you can rebase on master instead to merge.

@mahibi
Copy link
Collaborator

mahibi commented Sep 12, 2023

@Smarshal21 if you want to have all checks green:

  • "Check / check (ktlintCheck) (pull_request)"
    --> click on details which will show:

 > Task :app:ktlintTestSourceSetCheck FAILED
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt:60:5 Declarations and declarations with annotations should have an empty space between.
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt:83:22 Argument should be on a separate line (unless all arguments can fit a single line)
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt:83:22 Missing newline after "("
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt:84:67 Missing newline before ")"
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt:84:68 Missing newline before ")"
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt:85:22 Argument should be on a separate line (unless all arguments can fit a single line)
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt:85:22 Missing newline after "("
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt:86:67 Missing newline before ")"
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt:86:68 Missing newline before ")"
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/utils/UriUtilsTest.kt:29:1 First line in a method block should not be empty
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/webrtc/PeerConnectionNotifierTest.kt:34:5 Declarations and declarations with annotations should have an empty space between.

feel free to fix or ask if anything is unclear.

@Smarshal21
Copy link
Member Author

@Smarshal21 if you want to have all checks green:

  • "Check / check (ktlintCheck) (pull_request)"
    --> click on details which will show:

 > Task :app:ktlintTestSourceSetCheck FAILED
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt:60:5 Declarations and declarations with annotations should have an empty space between.
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt:83:22 Argument should be on a separate line (unless all arguments can fit a single line)
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt:83:22 Missing newline after "("
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt:84:67 Missing newline before ")"
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt:84:68 Missing newline before ")"
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt:85:22 Argument should be on a separate line (unless all arguments can fit a single line)
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt:85:22 Missing newline after "("
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt:86:67 Missing newline before ")"
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/utils/BundleKeysTest.kt:86:68 Missing newline before ")"
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/utils/UriUtilsTest.kt:29:1 First line in a method block should not be empty
/home/runner/work/talk-android/talk-android/app/src/test/java/com/nextcloud/talk/webrtc/PeerConnectionNotifierTest.kt:34:5 Declarations and declarations with annotations should have an empty space between.

feel free to fix or ask if anything is unclear.

Sure

@github-actions
Copy link
Contributor

Codacy

Lint

TypemasterPR
Warnings9393
Errors00

SpotBugs

CategoryBaseNew
Correctness99
Dodgy code123123
Internationalization55
Malicious code vulnerability33
Performance88
Security22
Total150150

@github-actions
Copy link
Contributor

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/3310-talk.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud Talk app.

@AndyScherzinger AndyScherzinger added this to the 17.2.0 milestone Sep 19, 2023
@AndyScherzinger AndyScherzinger merged commit 5eef4e7 into master Sep 19, 2023
@delete-merged-branch delete-merged-branch bot deleted the Utils_and_Webrtc branch September 19, 2023 16:36
Copy link
Contributor

github-actions bot commented Apr 2, 2024

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants