Welcome to mirror list, hosted at ThFree Co, Russian Federation.

entrypoint.rb « scenario « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d536ee71b60f8b29aeeee1da35dcd232efb34d61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
module QA
  module Scenario
    ##
    # Run test suite against any GitLab instance,
    # including staging and on-premises installation.
    #
    class Entrypoint < Template
      def perform(address, *files)
        Specs::Config.perform do |specs|
          specs.address = address
          configure_specs(specs)
        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

      protected

      def configure_specs(specs) end
    end
  end
end