summaryrefslogtreecommitdiffstats
path: root/integrations/README.md
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-06-02 02:39:44 +0100
committerGitHub <noreply@github.com>2020-06-01 21:39:44 -0400
commit14ca111f33eebb2c8394a225f9ed9cc712f3bcae (patch)
treec22f6b4edfd469271b45b715924a60683bd83ad1 /integrations/README.md
parentdc812f8ba5bf1c123fa948afed15c4309da8fb45 (diff)
downloadgitea-14ca111f33eebb2c8394a225f9ed9cc712f3bcae.tar.gz
gitea-14ca111f33eebb2c8394a225f9ed9cc712f3bcae.zip
log slow tests (#11487)
* log slow tests Signed-off-by: Andrew Thornton <art27@cantab.net> * placate lint Signed-off-by: Andrew Thornton <art27@cantab.net> * More lint placation Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'integrations/README.md')
-rw-r--r--integrations/README.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/integrations/README.md b/integrations/README.md
index fccce2ec65..ccb55377f5 100644
--- a/integrations/README.md
+++ b/integrations/README.md
@@ -70,3 +70,25 @@ For other databases(replace MSSQL to MYSQL, MYSQL8, PGSQL):
```
TEST_MSSQL_HOST=localhost:1433 TEST_MSSQL_DBNAME=test TEST_MSSQL_USERNAME=sa TEST_MSSQL_PASSWORD=MwantsaSecurePassword1 make test-mssql#GPG
```
+
+## Setting timeouts for declaring long-tests and long-flushes
+
+We appreciate that some testing machines may not be very powerful and
+the default timeouts for declaring a slow test or a slow clean-up flush
+may not be appropriate.
+
+You can either:
+
+* Within the test ini file set the following section:
+
+```ini
+[integration-tests]
+SLOW_TEST = 10s ; 10s is the default value
+SLOW_FLUSH = 5S ; 5s is the default value
+```
+
+* Set the following environment variables:
+
+```bash
+GITEA_SLOW_TEST_TIME="10s" GITEA_SLOW_FLUSH_TIME="5s" make test-sqlite
+```