-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add instrumented tests for LocalPlaylistManager.createPlaylist #5531
Conversation
679bc75
to
2aeccc0
Compare
@XiangRongLin I like this, thank you. What's the state of the PR? |
#5360 needs to be rebased and merged, which i can do tomorrow |
@Stypox Well i completly forgot that i did something like this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, this example is really useful :-)
app/src/androidTest/java/org/schabi/newpipe/testUtil/TrampolineSchedulerRule.kt
Show resolved
Hide resolved
app/src/androidTest/java/org/schabi/newpipe/local/playlist/LocalPlaylistManagerTest.kt
Show resolved
Hide resolved
This should probably be merged after #6560, to see the test actully pass in CI |
Rebased and tests are passing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you ;-)
I think there is something wrong with the format of the kotlin files. git diff
Shouldn't the last checks have failed? |
@litetex There is a good chance that i commented out the lines which format the kotlin files while developing. Checkstyle annoys me everytime I'm testing out stuff, which was the case here. And since checkstyle is on the same line as klint both get deactivated. If that is the case, then can you open a PR with the formatter applied? |
Do you mean that kind of thing where the build fails because it's no checkstyle conform? Maybe we should also check the kotlin formatting/linting in the CI?
→ see #6706 |
No, this is not a good idea, otherwise newbies wouldn't notice that their app conflicts with checkstyle rules. |
What is it?
Description of the changes in your PR
Fixes the following issue(s)
Relies on the following changes
Due diligence
Notes
TaskLocalDataSource
which should be the equivalent layout to ourLocalPlaylistManager
https://github.com/android/architecture-samples