Skip to content
代码片段 群组 项目
提交 ab8c254d 编辑于 作者: Alina Mihaila's avatar Alina Mihaila 提交者: Jennifer Li
浏览文件

Add threshold for RSpec tests levels in testing guide

上级 b1ed7d14
No related branches found
No related tags found
无相关合并请求
...@@ -358,6 +358,19 @@ a place to start. The most expensive examples here are in ...@@ -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 shared examples; any reductions generally have a larger impact as
they are called in multiple places. 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 #### Avoid repeating expensive actions
While isolated examples are very clear, and help serve the purpose of specs as While isolated examples are very clear, and help serve the purpose of specs as
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册