mirror of
https://github.com/TeamNewPipe/documentation
synced 2025-10-06 00:22:52 +02:00
Update docs/05_Mock_tests.md
This commit is contained in:
@@ -25,7 +25,7 @@ one wanted to update all YouTube mocks:
|
||||
`gradle clean test --tests 'org.schabi.newpipe.extractor.services.youtube.*' -Ddownloader=RECORDING`
|
||||
|
||||
The second way is changing the field `DownloaderFactory.DEFAULT_DOWNLOADER`.
|
||||
The default value is `DownloaderType.REAL` which should be changed on the master branch.
|
||||
The default value is `DownloaderType.REAL` which should not be changed on the master branch.
|
||||
Locally one can change this to `DownloaderType.RECORDING`, run the tests and commit
|
||||
the generated mocks.
|
||||
This is the main use case for when developing locally.
|
||||
|
Reference in New Issue
Block a user