diff --git a/contribute/developer-guide.md b/contribute/developer-guide.md index 1765fee723e..d75a0bc0563 100644 --- a/contribute/developer-guide.md +++ b/contribute/developer-guide.md @@ -76,7 +76,10 @@ When you log in for the first time, Grafana asks you to change your password. #### 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 @@ -98,6 +101,13 @@ If you're developing for the backend, run the tests with the standard Go tool: 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 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).