Update docs/05_Mock_tests.md

This commit is contained in:
XiangRongLin 2021-11-28 13:47:31 +01:00 committed by GitHub
parent c688e88ca6
commit b3a36686ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ one wanted to update all YouTube mocks:
`gradle clean test --tests 'org.schabi.newpipe.extractor.services.youtube.*' -Ddownloader=RECORDING` `gradle clean test --tests 'org.schabi.newpipe.extractor.services.youtube.*' -Ddownloader=RECORDING`
The second way is changing the field `DownloaderFactory.DEFAULT_DOWNLOADER`. 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 Locally one can change this to `DownloaderType.RECORDING`, run the tests and commit
the generated mocks. the generated mocks.
This is the main use case for when developing locally. This is the main use case for when developing locally.