Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Strokov <pstrokov@gitlab.com>2020-11-18 16:21:38 +0300
committerPavlo Strokov <pstrokov@gitlab.com>2020-11-18 16:21:38 +0300
commitbecfc73a38c079345e58d3f5c31a3d28aa34ce2e (patch)
tree1e0dd7f530cf43df88a7b468634344906164b595 /STYLE.md
parentf4648a1a4f0409532de2cc8d8348d5c326fe3d3b (diff)
parent11231dccdc47b84c807078bb5bb9e4a5d744f02f (diff)
Merge branch 'pks-style-tests-main' into 'master'
style: Document location of `TestMain()` function See merge request gitlab-org/gitaly!2799
Diffstat (limited to 'STYLE.md')
-rw-r--r--STYLE.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/STYLE.md b/STYLE.md
index ea3dc4132..ef8bcd538 100644
--- a/STYLE.md
+++ b/STYLE.md
@@ -273,6 +273,11 @@ practices](https://prometheus.io/docs/practices/naming/) and be aware of
the
[gotchas](https://prometheus.io/docs/practices/instrumentation/#things-to-watch-out-for).
+### Main function
+
+If tests require a `TestMain()` function for common setup, this function should
+be implemented in a file called `testhelper_test.go`
+
## Git Commands
Gitaly relies heavily on spawning git subprocesses to perform work. Any git