mirror of
https://github.com/go-gitea/gitea
synced 2025-01-22 07:34:26 +00:00
095fb9f2e3
* test: integration add git cli tests Extracted form for easing review process and debug #3152 * test: integration add git cli big file commit * fix: Don't rewrite key if internal server
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