Skip to content
代码片段 群组 项目
提交 c461ada6 编辑于 作者: Peter Leitzen's avatar Peter Leitzen
浏览文件

Merge branch 'alinamihaila-master-patch-05643' into 'master'

Add factory optimization examples

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/107113



Merged-by: default avatarPeter Leitzen <pleitzen@gitlab.com>
Approved-by: default avatarPeter Leitzen <pleitzen@gitlab.com>
Co-authored-by: default avatarAlina Mihaila <amihaila@gitlab.com>
No related branches found
No related tags found
无相关合并请求
......@@ -155,6 +155,8 @@ To avoid creation, it is worth bearing in mind that:
Use [Factory Doctor](https://test-prof.evilmartians.io/#/profilers/factory_doctor) to find cases where database persistence is not needed in a given test.
Examples of factories optmization [1](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/106796), [2](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/105329).
```shell
# run test for path
FDOC=1 bin/rspec spec/[path]/[to]/[spec].rb
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册