2
0
Files
gitcaddy-server/integrations
Lauris BH 36b7ed7a29 Remove hardcoded paths to fix randomly failing tests (#3347)
* Remove hardcoded paths to fix randomly failing tests

* Use correct function for merge path
2018-01-11 00:46:59 +01:00
..
2017-07-12 03:23:41 +02:00
2017-12-24 02:33:34 +02:00
2017-12-24 02:33:34 +02:00
2017-12-24 02:33:34 +02:00

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