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

Adjust CI workflow to run tests with mocks #513

Merged
merged 1 commit into from
Jan 15, 2021

Conversation

XiangRongLin
Copy link
Collaborator

  • I carefully read the contribution guidelines and agree to them.
  • I have tested the API against NewPipe.
  • I agree to create a pull request for NewPipe as soon as possible to make it compatible with the changed API.

This means that all tests that are already using mocks (currently only YoutubeMixPlaylistExtractorTest) will not test against the real Websites anymore. For that a new job needs to be added.

Now MockDownloader will be used in tests.
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.

For that a new job needs to be added.

Would you consider that important?

@XiangRongLin
Copy link
Collaborator Author

Would you consider that important?

Not that much. With big bugs, we will get flooded with issues about it (like new yt-decrypt format). Small ones aren't getting fixed (See the amount of failing tests and for how long they are already failing).

But now i know more about github actions and can easily just combine them into a single file i think.

@Stypox
Copy link
Member

Stypox commented Jan 15, 2021

Not that much.

I agree with you. I'm merging this, thank you :-D

@Stypox Stypox merged commit 48a9993 into TeamNewPipe:dev Jan 15, 2021
@XiangRongLin XiangRongLin deleted the ci_use_mock branch January 15, 2021 19:38
@TobiGr TobiGr mentioned this pull request Jan 18, 2021
14 tasks
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.

2 participants