You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/doc/developers/hacking-on-gitea.en-us.md
+12-2
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,7 @@ One of these three distributions of Make will run on Windows:
73
73
- MSYS2 is a collection of tools and libraries providing you with an easy-to-use environment for building, installing and running native Windows software, it includes MinGW-w64.
74
74
- In MingGW-w64, the binary is called `mingw32-make.exe` instead of `make.exe`. Add the `bin` folder to `PATH`.
75
75
- In MSYS2, you can use `make` directly. See [MSYS2 Porting](https://www.msys2.org/wiki/Porting/).
76
+
- To compile Gitea with CGO_ENABLED (eg: SQLite3), you might need to use [tdm-gcc](https://jmeubank.github.io/tdm-gcc/) instead of MSYS2 gcc, because MSYS2 gcc headers lack some Windows-only CRT functions like `_beginthread`.
76
77
-[Chocolatey package](https://chocolatey.org/packages/make). Run `choco install make`
77
78
78
79
**Note**: If you are attempting to build using make with Windows Command Prompt, you may run into issues. The above prompts (Git bash, or MinGW) are recommended, however if you only have command prompt (or potentially PowerShell) you can set environment variables using the [set](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/set_1) command, e.g. `set TAGS=bindata`.
@@ -273,10 +274,17 @@ make test-sqlite-migration # with SQLite switched for the appropriate database
273
274
274
275
There are two types of test run by Gitea: Unit tests and Integration Tests.
275
276
277
+
### Unit Tests
278
+
279
+
Unit tests are covered by `*_test.go` in `go test` system.
280
+
You can set environment variable `GITEA_UNIT_TESTS_VERBOSE=1` to see detail logs during the test.
281
+
276
282
```bash
277
283
TAGS="bindata sqlite sqlite_unlock_notify" make test# Runs the unit tests
278
284
```
279
285
286
+
### Integration Tests
287
+
280
288
Unit tests will not and cannot completely test Gitea alone. Therefore, we
281
289
have written integration tests; however, these are database dependent.
282
290
@@ -288,10 +296,12 @@ will run the integration tests in an SQLite environment. Integration tests
288
296
require `git lfs` to be installed. Other database tests are available but
0 commit comments