diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-11-10 09:57:47 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-11-10 09:57:47 +0100 |
commit | 9a92c16a50b7f37b74426a454c235cf8e9ee8d9b (patch) | |
tree | de246664ed1259f1bf9fa95c8eaf0a586ef2322a /qa/qa/specs/runner.rb | |
parent | 3abae1a78d3b6451f486466acb73e0f21f47f035 (diff) | |
download | gitlab-ce-9a92c16a50b7f37b74426a454c235cf8e9ee8d9b.tar.gz |
Refactor QA specs runners and improve specs
Diffstat (limited to 'qa/qa/specs/runner.rb')
-rw-r--r-- | qa/qa/specs/runner.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/qa/qa/specs/runner.rb b/qa/qa/specs/runner.rb index 3cfe52b350c..f98b8f88e9a 100644 --- a/qa/qa/specs/runner.rb +++ b/qa/qa/specs/runner.rb @@ -3,7 +3,15 @@ require 'rspec/core' module QA module Specs class Runner < Scenario::Template - def perform(tty: false, tags: [], files: ['qa/specs/features']) + attr_accessor :tty, :tags, :files + + def initialize + @tty = false + @tags = [] + @files = ['qa/specs/features'] + end + + def perform args = [] args.push('--tty') if tty tags.to_a.each { |tag| args.push(['-t', tag.to_s]) } |