From 14ca111f33eebb2c8394a225f9ed9cc712f3bcae Mon Sep 17 00:00:00 2001 From: zeripath Date: Tue, 2 Jun 2020 02:39:44 +0100 Subject: log slow tests (#11487) * log slow tests Signed-off-by: Andrew Thornton * placate lint Signed-off-by: Andrew Thornton * More lint placation Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick --- integrations/README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'integrations/README.md') 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 +``` -- cgit v1.2.3