# Run CouchCTL integration test ## Install Telepresence Telepresence allow us to run integration test locally against CouchDB. To install it, follow the guide [here](https://www.telepresence.io/docs/latest/quick-start/). Then follow the steps below ```shell kubectl config use-context telepresence helm install telepresence connect telepresence intercept --namespace data-sync-couchdb data-sync-couchdb --local-only ``` ## Running the test using bazel To run the couchctl tests, run the command below. To select which env to run against change the args variables from `go_test` [here](./BUILD.bazel). ```js args = [ "-fleet-type=store", "-cluster-type=dsds", ] ``` ```shell just test //pkg/edge/datasync/controllers/couchctl:couchctl_test ```