Skip to content

Draft: Adjust the load order of ee and jh spec_helper

Baodong请求将re-order-spec-ee-jh合并到main-jh

Related MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/86843 Changed the load order in Upstream.

Changes outside the jh directory: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/94919

What does this MR do and why?

Adjust the load order of ee and jh tests so that jh covers ee's tests.

This is an experimental MR to show the helper files load order in test.

Advantage

The advantage of this MR is that it is flexible.

Because test helper files are always loaded, ee's methods can be easily extended using ruby's reopen without prepend_mod method.

Since jh test helpers is executed after ee, we always have a way to modify the logic of ee test helpers only in the jh directory.

Baodong 编辑于

合并请求报告