Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d598c359
Commit
d598c359
authored
Jun 29, 2021
by
Albert Salim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid running rspec with focus on CI
parent
fbba57a1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
.gitlab/ci/frontend.gitlab-ci.yml
.gitlab/ci/frontend.gitlab-ci.yml
+1
-1
spec/fast_spec_helper.rb
spec/fast_spec_helper.rb
+4
-2
spec/spec_helper.rb
spec/spec_helper.rb
+2
-3
No files found.
.gitlab/ci/frontend.gitlab-ci.yml
View file @
d598c359
...
...
@@ -107,7 +107,7 @@ update-storybook-yarn-cache:
-
run_timed_command "gem install knapsack --no-document"
-
run_timed_command "scripts/gitaly-test-spawn"
-
source ./scripts/rspec_helpers.sh
-
rspec_paralellized_job
"--tag frontend_fixture"
-
rspec_paralellized_job
artifacts
:
name
:
frontend-fixtures
expire_in
:
31d
...
...
spec/fast_spec_helper.rb
View file @
d598c359
...
...
@@ -24,6 +24,8 @@ ActiveSupport::Dependencies.autoload_paths << 'ee/lib'
ActiveSupport
::
XmlMini
.
backend
=
'Nokogiri'
RSpec
.
configure
do
|
config
|
config
.
filter_run
focus:
true
config
.
run_all_when_everything_filtered
=
true
unless
ENV
[
'CI'
]
config
.
filter_run
focus:
true
config
.
run_all_when_everything_filtered
=
true
end
end
spec/spec_helper.rb
View file @
d598c359
...
...
@@ -76,9 +76,6 @@ require_relative '../tooling/quality/test_level'
quality_level
=
Quality
::
TestLevel
.
new
RSpec
.
configure
do
|
config
|
config
.
filter_run
focus:
true
config
.
run_all_when_everything_filtered
=
true
config
.
use_transactional_fixtures
=
true
config
.
use_instantiated_fixtures
=
false
config
.
fixture_path
=
Rails
.
root
...
...
@@ -113,6 +110,8 @@ RSpec.configure do |config|
end
unless
ENV
[
'CI'
]
config
.
filter_run
focus:
true
config
.
run_all_when_everything_filtered
=
true
# Re-run failures locally with `--only-failures`
config
.
example_status_persistence_file_path
=
'./spec/examples.txt'
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment