Chore: Update developer guide for running integration tests (#57758)

This commit is contained in:
Sofia Papagiannaki
2022-10-27 17:18:20 +03:00
committed by GitHub
parent 3d437117ad
commit 40a59c2793

View File

@ -149,13 +149,13 @@ go test -covermode=atomic -tags=integration ./pkg/...
To run PostgreSQL and MySQL integration tests locally, you need to start the docker blocks for MySQL and/or PostgreSQL test data sources by running `make devenv sources=mysql_tests,postgres_tests`. When your test data sources are running, you can execute integration tests by running:
```bash
GRAFANA_TEST_DB=mysql go test -covermode=atomic -tags=integration ./pkg/...
make test-go-integration-mysql
```
and/or
```bash
GRAFANA_TEST_DB=postgres go test -covermode=atomic -tags=integration ./pkg/...
make test-go-integration-postgres
```
### Run end-to-end tests