diff options
Diffstat (limited to 'qa/qa/scenario/test/instance.rb')
-rw-r--r-- | qa/qa/scenario/test/instance.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/qa/qa/scenario/test/instance.rb b/qa/qa/scenario/test/instance.rb new file mode 100644 index 00000000000..689292bc60b --- /dev/null +++ b/qa/qa/scenario/test/instance.rb @@ -0,0 +1,26 @@ +module QA + module Scenario + module Test + ## + # Run test suite against any GitLab instance, + # including staging and on-premises installation. + # + class Instance < Scenario::Template + def perform(address, *files) + Specs::Config.perform do |specs| + specs.address = address + end + + ## + # Perform before hooks, which are different for CE and EE + # + Runtime::Release.perform_before_hooks + + Specs::Runner.perform do |specs| + specs.rspec('--tty', files.any? ? files : 'qa/specs/features') + end + end + end + end + end +end |