Skip to content

Add Tests for NewPlayer#11

Merged
Stypox merged 1 commit intoTeamNewPipe:devfrom
nicholasala:tests
Feb 26, 2025
Merged

Add Tests for NewPlayer#11
Stypox merged 1 commit intoTeamNewPipe:devfrom
nicholasala:tests

Conversation

@nicholasala
Copy link

@nicholasala nicholasala commented Nov 21, 2024

Hello everybody

I am writing some tests for NewPlayer. I started from unit tests and then I can move on to UI tests. I write a list here with which classes are tested and which are supposed to be tested, then I will update this list. Feel free to suggest additions to the list.

Unit tests

  • CachingRepository
  • PrefetchingRepository
  • NewPlayerImpl
  • NewPlayerViewModelImpl

@nicholasala nicholasala changed the title Tests Testing Nov 21, 2024
@ShareASmile ShareASmile changed the title Testing Add Tests for NewPlayer Nov 22, 2024
@ShareASmile ShareASmile added tests Issues and PR related to unit & UI tests code quality Improvements to the codebase to improve the code quality labels Nov 22, 2024
@theScrabi
Copy link
Member

theScrabi commented Jan 3, 2025

lgtm. Please squash your commits though.

@nicholasala
Copy link
Author

Hi guys

I think we have reached a good initial point considering unit tests. We have now 83 unit tests and the priority classes to be tested are tested now. So I am about to move to UI tests and I was thinking to start with VideoPlayerControllerUI. Let me know if you have other ideas 😉

@Stypox
Copy link
Member

Stypox commented Jan 10, 2025

@nicholasala do you want to continue on this branch, or would you prefer this PR to be merged, and then opening a separate PR?
Thank you a lot by the way!

I guess one of the most complex UI components to test is the guesture system. So maybe do that part after you tested other simpler stuff.

@nicholasala
Copy link
Author

Thank you @Stypox! I would prefer to close this PR and open a new one dedicated to UI tests, so I am going to mark this PR as ready for review 👍

Perfect, I will follow your advice regarding the UI tests

@nicholasala nicholasala marked this pull request as ready for review January 10, 2025 17:32
Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

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

Thank you for working on the tests! Sorry for taking so long to merge

@Stypox Stypox merged commit 4f5e5c9 into TeamNewPipe:dev Feb 26, 2025
@nicholasala nicholasala deleted the tests branch February 28, 2025 12:46
@nicholasala
Copy link
Author

No problem! Thank you guys, I am glad to have made a contribution to the project. Considering UI tests I will ask @Profpatsch, that I know is working on the project if it is ok to proceed or it is better to wait.

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

Labels

code quality Improvements to the codebase to improve the code quality tests Issues and PR related to unit & UI tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments