diff options
author | Rémy Coutable <remy@rymai.me> | 2018-08-03 14:25:14 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-08-28 17:32:59 +0300 |
commit | 520fcaab1c202d4cfe0703c324f46e821d93e1ef (patch) | |
tree | eaec36b10df424a2983057b9b8de0f12dded0219 /qa/spec/scenario | |
parent | 02e9a8f947fafe246f91e6da3b056fee11aaab7b (diff) |
Allow to pass --tag to bin/qa run
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'qa/spec/scenario')
-rw-r--r-- | qa/spec/scenario/test/instance/all_spec.rb | 8 | ||||
-rw-r--r-- | qa/spec/scenario/test/instance/smoke_spec.rb | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/qa/spec/scenario/test/instance/all_spec.rb b/qa/spec/scenario/test/instance/all_spec.rb index 423527e938e..1d96352550b 100644 --- a/qa/spec/scenario/test/instance/all_spec.rb +++ b/qa/spec/scenario/test/instance/all_spec.rb @@ -1,4 +1,10 @@ describe QA::Scenario::Test::Instance::All do + subject do + Class.new(described_class) do + tags :rspec, :foo + end + end + context '#perform' do let(:arguments) { spy('Runtime::Scenario') } let(:release) { spy('Runtime::Release') } @@ -24,7 +30,7 @@ describe QA::Scenario::Test::Instance::All do subject.perform("test") expect(runner).to have_received(:options=) - .with(::File.expand_path('../../../../qa/specs/features', __dir__)) + .with(['--tag', 'rspec,foo', '--', ::File.expand_path('../../../../qa/specs/features', __dir__)]) end end diff --git a/qa/spec/scenario/test/instance/smoke_spec.rb b/qa/spec/scenario/test/instance/smoke_spec.rb index e79d19e8212..386eefae930 100644 --- a/qa/spec/scenario/test/instance/smoke_spec.rb +++ b/qa/spec/scenario/test/instance/smoke_spec.rb @@ -30,7 +30,7 @@ describe QA::Scenario::Test::Instance::Smoke do subject.perform("test") expect(runner).to have_received(:options=) - .with(::File.expand_path('../../../../qa/specs/features', __dir__)) + .with(['--tag', 'smoke', '--', ::File.expand_path('../../../../qa/specs/features', __dir__)]) end end |