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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
bf0ec009
Commit
bf0ec009
authored
Jan 31, 2018
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expand QA spec file paths to allow running bin/qa from anywhere
parent
7095c2bf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
qa/qa/scenario/test/instance.rb
qa/qa/scenario/test/instance.rb
+6
-1
qa/qa/specs/runner.rb
qa/qa/specs/runner.rb
+1
-1
qa/spec/scenario/test/instance_spec.rb
qa/spec/scenario/test/instance_spec.rb
+2
-1
No files found.
qa/qa/scenario/test/instance.rb
View file @
bf0ec009
...
@@ -22,7 +22,12 @@ module QA
...
@@ -22,7 +22,12 @@ module QA
Specs
::
Runner
.
perform
do
|
specs
|
Specs
::
Runner
.
perform
do
|
specs
|
specs
.
tty
=
true
specs
.
tty
=
true
specs
.
tags
=
self
.
class
.
focus
specs
.
tags
=
self
.
class
.
focus
specs
.
files
=
files
.
any?
?
files
:
'qa/specs/features'
specs
.
files
=
if
files
.
any?
files
else
File
.
expand_path
(
'../../specs/features'
,
__dir__
)
end
end
end
end
end
end
end
...
...
qa/qa/specs/runner.rb
View file @
bf0ec009
...
@@ -8,7 +8,7 @@ module QA
...
@@ -8,7 +8,7 @@ module QA
def
initialize
def
initialize
@tty
=
false
@tty
=
false
@tags
=
[]
@tags
=
[]
@files
=
[
'qa/specs/features'
]
@files
=
[
File
.
expand_path
(
'./features'
,
__dir__
)
]
end
end
def
perform
def
perform
...
...
qa/spec/scenario/test/instance_spec.rb
View file @
bf0ec009
...
@@ -29,7 +29,8 @@ describe QA::Scenario::Test::Instance do
...
@@ -29,7 +29,8 @@ describe QA::Scenario::Test::Instance do
it
'should call runner with default arguments'
do
it
'should call runner with default arguments'
do
subject
.
perform
(
"test"
)
subject
.
perform
(
"test"
)
expect
(
runner
).
to
have_received
(
:files
=
).
with
(
'qa/specs/features'
)
expect
(
runner
).
to
have_received
(
:files
=
)
.
with
(
File
.
expand_path
(
'../../../qa/specs/features'
,
__dir__
))
end
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