diff options
| author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-15 21:09:06 +0000 |
|---|---|---|
| committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-15 21:09:06 +0000 |
| commit | 6505e8ec12b203dc380186e7eb6916397caca1f4 (patch) | |
| tree | 9b250172f693c5ff4a641849538c92d1c13d9d0a /doc/development/testing_guide | |
| parent | c54e7283c976bf7f4394e3270a28e34655275275 (diff) | |
| download | gitlab-ce-6505e8ec12b203dc380186e7eb6916397caca1f4.tar.gz | |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/testing_guide')
| -rw-r--r-- | doc/development/testing_guide/best_practices.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/development/testing_guide/best_practices.md b/doc/development/testing_guide/best_practices.md index 67e71dcbfce..54d3f368bbd 100644 --- a/doc/development/testing_guide/best_practices.md +++ b/doc/development/testing_guide/best_practices.md @@ -358,6 +358,19 @@ a place to start. The most expensive examples here are in shared examples; any reductions generally have a larger impact as they are called in multiple places. +#### Top slow tests + +We collect information about tests duration in [`rspec_profiling_stats`](https://gitlab.com/gitlab-org/rspec_profiling_stats) project. The data is showed using GitLab Pages in this +[UI](https://gitlab-org.gitlab.io/rspec_profiling_stats/) + +With [issue](https://gitlab.com/gitlab-org/gitlab/-/issues/375983) we defined thresholds for tests duration that can act a guide. + +For tests that are not meeting the thresholds it is recommended to create issues and improve the tests duration. + +| Date | Feature tests | Controllers and Requests tests | Other | +| --- | --- | --- | --- | +| 2023-02-15 | 67.42 seconds | 44.66 seconds | 76.86 seconds | + #### Avoid repeating expensive actions While isolated examples are very clear, and help serve the purpose of specs as |
