aboutsummaryrefslogtreecommitdiffstats
path: root/integrations
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2018-01-08 17:29:52 +0100
committerLauris BH <lauris@nix.lv>2018-01-08 18:29:52 +0200
commitf2b841d0ec129f8718a64f2f410484c3acf61368 (patch)
tree7c7b6109b5c2c5dd73ee7694db703614e47ee44e /integrations
parentd663cef2a578f0ec4ed034299d814558838a1172 (diff)
downloadgitea-f2b841d0ec129f8718a64f2f410484c3acf61368.tar.gz
gitea-f2b841d0ec129f8718a64f2f410484c3acf61368.zip
Add some instructions about running integration tests (#3319)
* Add some instructions about running integration tests * Add missing newline escape * Suggest running a clean build
Diffstat (limited to 'integrations')
-rw-r--r--integrations/README.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/integrations/README.md b/integrations/README.md
new file mode 100644
index 0000000000..25028fd2b9
--- /dev/null
+++ b/integrations/README.md
@@ -0,0 +1,22 @@
+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