summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorsinguliere <35190819+singuliere@users.noreply.github.com>2022-01-01 04:31:24 +0100
committerGitHub <noreply@github.com>2022-01-01 04:31:24 +0100
commit1a4e2bfcd115ada6cb859cb87964c227e0e082b9 (patch)
treebeaa54c2bb48b2f29aee191cde0080d5e9f0f302 /docs
parentfb2dc956233bae9f1136436e015ebd8190c0113c (diff)
downloadgitea-1a4e2bfcd115ada6cb859cb87964c227e0e082b9.tar.gz
gitea-1a4e2bfcd115ada6cb859cb87964c227e0e082b9.zip
tests: s/GITEA_UNIT_TESTS_VERBOSE/GITEA_UNIT_TESTS_LOG_SQL/ (#18142)
The GITEA_UNIT_TESTS_VERBOSE variable is an undocumented variable introduced in 2017 (see 1028ef2defd94a64f2433b07fe5d93681864cebb) whose sole purpose has been to log SQL statements when running unit tests. It is renamed for clarity and a warning is displayed for backward compatibility for people and scripts that know about it. The documentation is updated to reflect this change.
Diffstat (limited to 'docs')
-rw-r--r--docs/content/doc/developers/hacking-on-gitea.en-us.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/doc/developers/hacking-on-gitea.en-us.md b/docs/content/doc/developers/hacking-on-gitea.en-us.md
index a0a3725955..5f52856d1d 100644
--- a/docs/content/doc/developers/hacking-on-gitea.en-us.md
+++ b/docs/content/doc/developers/hacking-on-gitea.en-us.md
@@ -277,7 +277,7 @@ There are two types of test run by Gitea: Unit tests and Integration Tests.
### Unit Tests
Unit tests are covered by `*_test.go` in `go test` system.
-You can set environment variable `GITEA_UNIT_TESTS_VERBOSE=1` to see detail logs during the test.
+You can set the environment variable `GITEA_UNIT_TESTS_LOG_SQL=1` to display all SQL statements when running the tests in verbose mode (i.e. when `GOTESTFLAGS=-v` is set).
```bash
TAGS="bindata sqlite sqlite_unlock_notify" make test # Runs the unit tests