1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-10 17:54:27 +00:00
gitea/integrations
Marc Brückner 695b10bedd Fix API-Endpoint release (#3012)
* Fixes API-Endpoint release (#3005)

* Using context.ReferencesGitRepo(); doing the same in the PATCH route.

* Add release create, get and update test
2018-01-16 10:54:13 +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-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-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