mirror of https://github.com/go-gitea/gitea
Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
546 B
23 lines
546 B
7 years ago
|
Integration tests can be run with make commands for the
|
||
|
appropriate backends, namely:
|
||
|
|
||
|
make test-mysql
|
||
|
make test-pgsql
|
||
|
make test-sqlite
|
||
|
|
||
|
# Running individual tests
|
||
|
|
||
|
Example command to run GPG test with sqlite backend:
|
||
|
|
||
|
```
|
||
|
go test -c code.gitea.io/gitea/integrations \
|
||
|
-o integrations.sqlite.test -tags 'sqlite' &&
|
||
|
GITEA_ROOT="$GOPATH/src/code.gitea.io/gitea" \
|
||
|
GITEA_CONF=integrations/sqlite.ini ./integrations.sqlite.test \
|
||
|
-test.v -test.run GPG
|
||
|
```
|
||
|
|
||
|
Make sure to perform a clean build before running tests:
|
||
|
|
||
|
make clean build
|