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
158d5123
Commit
158d5123
authored
Nov 30, 2020
by
Albert Salim
Committed by
Lin Jen-Shin
Nov 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Strip leading `./` in test mapping spec path
parent
69985326
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
spec/tooling/lib/tooling/test_map_generator_spec.rb
spec/tooling/lib/tooling/test_map_generator_spec.rb
+9
-9
tooling/lib/tooling/test_map_generator.rb
tooling/lib/tooling/test_map_generator.rb
+1
-1
No files found.
spec/tooling/lib/tooling/test_map_generator_spec.rb
View file @
158d5123
...
...
@@ -50,13 +50,13 @@ RSpec.describe Tooling::TestMapGenerator do
let
(
:expected_mapping
)
do
{
'lib/gitlab/current_settings.rb'
=>
[
'
./
spec/factories_spec.rb'
'spec/factories_spec.rb'
],
'lib/feature.rb'
=>
[
'
./
spec/factories_spec.rb'
'spec/factories_spec.rb'
],
'lib/gitlab/marginalia.rb'
=>
[
'
./
spec/factories_spec.rb'
'spec/factories_spec.rb'
]
}
end
...
...
@@ -80,16 +80,16 @@ RSpec.describe Tooling::TestMapGenerator do
let
(
:expected_mapping
)
do
{
'lib/gitlab/current_settings.rb'
=>
[
'
./
spec/factories_spec.rb'
,
'
./
spec/models/project_spec.rb'
'spec/factories_spec.rb'
,
'spec/models/project_spec.rb'
],
'lib/feature.rb'
=>
[
'
./
spec/factories_spec.rb'
,
'
./
spec/models/project_spec.rb'
'spec/factories_spec.rb'
,
'spec/models/project_spec.rb'
],
'lib/gitlab/marginalia.rb'
=>
[
'
./
spec/factories_spec.rb'
,
'
./
spec/models/project_spec.rb'
'spec/factories_spec.rb'
,
'spec/models/project_spec.rb'
]
}
end
...
...
tooling/lib/tooling/test_map_generator.rb
View file @
158d5123
...
...
@@ -17,7 +17,7 @@ module Tooling
example_groups
.
each
do
|
example_id
,
files
|
files
.
each
do
|
file
|
spec_file
=
strip_example_uid
(
example_id
)
@mapping
[
file
]
<<
spec_file
@mapping
[
file
]
<<
spec_file
.
delete_prefix
(
'./'
)
end
end
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