mirror of
https://github.com/rclone/rclone.git
synced 2025-01-24 15:21:08 +01:00
docs: Update integration testing guide
This commit is contained in:
parent
bfa2878d24
commit
e57a388851
@ -100,21 +100,24 @@ need to make a remote called `TestDrive`.
|
|||||||
You can then run the unit tests in the drive directory. These tests
|
You can then run the unit tests in the drive directory. These tests
|
||||||
are skipped if `TestDrive:` isn't defined.
|
are skipped if `TestDrive:` isn't defined.
|
||||||
|
|
||||||
cd drive
|
cd backend/drive
|
||||||
go test -v
|
go test -v
|
||||||
|
|
||||||
You can then run the integration tests which tests all of rclone's
|
You can then run the integration tests which tests all of rclone's
|
||||||
operations. Normally these get run against the local filing system,
|
operations. Normally these get run against the local filing system,
|
||||||
but they can be run against any of the remotes.
|
but they can be run against any of the remotes.
|
||||||
|
|
||||||
cd ../fs
|
cd fs/sync
|
||||||
go test -v -remote TestDrive:
|
go test -v -remote TestDrive:
|
||||||
go test -v -remote TestDrive: -subdir
|
go test -v -remote TestDrive: -subdir
|
||||||
|
|
||||||
If you want to run all the integration tests against all the remotes,
|
cd fs/operations
|
||||||
then run in that directory
|
go test -v -remote TestDrive:
|
||||||
|
|
||||||
go run test_all.go
|
If you want to run all the integration tests against all the remotes,
|
||||||
|
then change into the project root and run
|
||||||
|
|
||||||
|
make test
|
||||||
|
|
||||||
## Code Organisation ##
|
## Code Organisation ##
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user