summaryrefslogtreecommitdiff
path: root/qa/qa/specs/runner.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-11-10 09:57:47 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-11-10 09:57:47 +0100
commit9a92c16a50b7f37b74426a454c235cf8e9ee8d9b (patch)
treede246664ed1259f1bf9fa95c8eaf0a586ef2322a /qa/qa/specs/runner.rb
parent3abae1a78d3b6451f486466acb73e0f21f47f035 (diff)
downloadgitlab-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.rb10
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]) }