mirror of
https://github.com/rclone/rclone.git
synced 2025-12-06 00:03:32 +00:00
Make integration tests use go1.7+ nested tests #2154
* Removed generated code and code generator * Updated docs on how to write integration tests * Tidied up the actual integration tests
This commit is contained in:
@@ -303,8 +303,7 @@ Getting going
|
||||
Unit tests
|
||||
|
||||
* Create a config entry called `TestRemote` for the unit tests to use
|
||||
* Add your fs to the end of `fstest/fstests/gen_tests.go`
|
||||
* generate `backend/remote/remote_test.go` unit tests `cd fstest/fstests; go generate`
|
||||
* Create a `backend/remote/remote_test.go` - copy and adjust your example remote
|
||||
* Make sure all tests pass with `go test -v`
|
||||
|
||||
Integration tests
|
||||
|
||||
Reference in New Issue
Block a user