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.

22 lines
546 B

  1. Integration tests can be run with make commands for the
  2. appropriate backends, namely:
  3. make test-mysql
  4. make test-pgsql
  5. make test-sqlite
  6. # Running individual tests
  7. Example command to run GPG test with sqlite backend:
  8. ```
  9. go test -c code.gitea.io/gitea/integrations \
  10. -o integrations.sqlite.test -tags 'sqlite' &&
  11. GITEA_ROOT="$GOPATH/src/code.gitea.io/gitea" \
  12. GITEA_CONF=integrations/sqlite.ini ./integrations.sqlite.test \
  13. -test.v -test.run GPG
  14. ```
  15. Make sure to perform a clean build before running tests:
  16. make clean build