1
0
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:
XiangRongLin
2021-11-28 13:47:31 +01:00
committed by GitHub
parent c688e88ca6
commit b3a36686ad

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`
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.