mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Developer guide: Update wrt. Windows (#28559)
* Developer guide: Update wrt. Windows Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> * Update contribute/developer-guide.md Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com> * Update contribute/developer-guide.md Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com> Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
This commit is contained in:
parent
4301121b9d
commit
4ec60c7187
@ -76,7 +76,10 @@ When you log in for the first time, Grafana asks you to change your password.
|
|||||||
|
|
||||||
#### Building on Windows
|
#### Building on Windows
|
||||||
|
|
||||||
The Grafana backend includes Sqlite3 which requires GCC to compile. So in order to compile Grafana on Windows you need to install GCC. We recommend [TDM-GCC](http://tdm-gcc.tdragon.net/download).
|
The Grafana backend includes SQLite which requires GCC to compile. So in order to compile Grafana on Windows you need to install GCC. We recommend [TDM-GCC](http://tdm-gcc.tdragon.net/download). Eventually, if you use [Scoop](https://scoop.sh), you can install GCC through that.
|
||||||
|
|
||||||
|
You can simply build the back-end as follows: `go run build.go build`. The Grafana binaries will be in bin\\windows-amd64.
|
||||||
|
Alternately, if you wish to use the `make` command, install [Make for Windows](http://gnuwin32.sourceforge.net/packages/make.htm) and use it in a Unix shell (f.ex. Git Bash).
|
||||||
|
|
||||||
## Test Grafana
|
## Test Grafana
|
||||||
|
|
||||||
@ -98,6 +101,13 @@ If you're developing for the backend, run the tests with the standard Go tool:
|
|||||||
go test -v ./pkg/...
|
go test -v ./pkg/...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### On Windows
|
||||||
|
Running the backend tests on Windows currently needs some tweaking, so use the build.go script:
|
||||||
|
|
||||||
|
```
|
||||||
|
go run build.go test
|
||||||
|
```
|
||||||
|
|
||||||
### Run end-to-end tests
|
### Run end-to-end tests
|
||||||
|
|
||||||
The end to end tests in Grafana use [Cypress](https://www.cypress.io/) to run automated scripts in a headless Chromium browser. Read more about our [e2e framework](/contribute/style-guides/e2e.md).
|
The end to end tests in Grafana use [Cypress](https://www.cypress.io/) to run automated scripts in a headless Chromium browser. Read more about our [e2e framework](/contribute/style-guides/e2e.md).
|
||||||
|
Loading…
Reference in New Issue
Block a user