1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-10 09:44:43 +00:00
gitea/integrations
Sandro Santilli f2b841d0ec Add some instructions about running integration tests (#3319)
* Add some instructions about running integration tests

* Add missing newline escape

* Suggest running a clean build
2018-01-08 18:29:52 +02:00
..
2017-07-12 03:23:41 +02:00
2017-07-27 12:23:38 +03:00
2017-12-24 02:33:34 +02:00
2017-11-28 22:58:37 +02:00
2017-11-28 22:58:37 +02:00
2017-12-30 18:47:52 -06:00
2017-12-24 02:33:34 +02:00
2017-12-24 02:33:34 +02:00
2017-10-27 09:10:54 +03:00
2017-11-28 22:58:37 +02:00
2017-07-12 17:58:52 +03: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