summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-05-11 15:07:31 +0900
committerShinya Maeda <shinya@gitlab.com>2018-05-11 15:07:31 +0900
commit9ccfcf55ba684a4c7b1dfec761e3481f74b746b0 (patch)
treecd4ca2e6ede23c88c1b9d853bde935b5c4883d48 /doc
parent6a108b8fbd5f1b5c2d8e6b51bb34cda06fe0e5ee (diff)
parent35816eb7be76aa1a26dcf2f9cfeddf7c60b2da26 (diff)
downloadgitlab-ce-9ccfcf55ba684a4c7b1dfec761e3481f74b746b0.tar.gz
Merge branch 'master' into per-project-pipeline-iid
Diffstat (limited to 'doc')
-rw-r--r--doc/development/testing_guide/best_practices.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/development/testing_guide/best_practices.md b/doc/development/testing_guide/best_practices.md
index 7b32e0a47e1..61fa5459b91 100644
--- a/doc/development/testing_guide/best_practices.md
+++ b/doc/development/testing_guide/best_practices.md
@@ -230,6 +230,11 @@ describe "#==" do
end
```
+### Prometheus tests
+
+Prometheus metrics may be preserved from one test run to another. To ensure that metrics are
+reset before each example, add the `:prometheus` tag to the Rspec test.
+
### Matchers
Custom matchers should be created to clarify the intent and/or hide the