mirror of
https://github.com/grafana/grafana.git
synced 2025-01-16 11:42:35 -06:00
update README.md regarding running tests
[skip ci]
This commit is contained in:
parent
fae9eb546e
commit
e429cd8333
10
README.md
10
README.md
@ -83,7 +83,7 @@ In your custom.ini uncomment (remove the leading `;`) sign. And set `app_mode =
|
|||||||
#### Frontend
|
#### Frontend
|
||||||
Execute all frontend tests
|
Execute all frontend tests
|
||||||
```bash
|
```bash
|
||||||
$ npm run test
|
npm run test
|
||||||
```
|
```
|
||||||
|
|
||||||
Writing & watching frontend tests (we have two test runners)
|
Writing & watching frontend tests (we have two test runners)
|
||||||
@ -98,13 +98,13 @@ Writing & watching frontend tests (we have two test runners)
|
|||||||
#### Backend
|
#### Backend
|
||||||
```bash
|
```bash
|
||||||
# Run Golang tests using sqlite3 as database (default)
|
# Run Golang tests using sqlite3 as database (default)
|
||||||
$ go test ./pkg/...
|
go test ./pkg/...
|
||||||
|
|
||||||
# Run Golang tests using mysql as database - convenient to use /docker/block/mysql_tests
|
# Run Golang tests using mysql as database - convenient to use /docker/blocks/mysql_tests
|
||||||
$ GRAFANA_TEST_DB=mysql go test ./pkg/...
|
GRAFANA_TEST_DB=mysql go test ./pkg/...
|
||||||
|
|
||||||
# Run Golang tests using postgres as database - convenient to use /docker/blocks/postgres_tests
|
# Run Golang tests using postgres as database - convenient to use /docker/blocks/postgres_tests
|
||||||
$ GRAFANA_TEST_DB=postgres go test ./pkg/...
|
GRAFANA_TEST_DB=postgres go test ./pkg/...
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contribute
|
## Contribute
|
||||||
|
Loading…
Reference in New Issue
Block a user