Sha256: bf7ec39aff0ad35080ddd1ba01ada2a1d02240034c4af8e61bfdb43d8a7f819f

Contents?: true

Size: 960 Bytes

Versions: 5

Compression:

Stored size: 960 Bytes

Contents

# frozen_string_literal: true

require 'fileutils'
require 'rspec'
require_relative '../lib/generators/invoke_generators'
require_relative 'support/settings_helper'

AUTOMATION_TYPES = %w[android ios selenium watir cross_platform].freeze
FRAMEWORKS = %w[cucumber rspec].freeze

RSpec.configure do |config|
  config.include(InvokeGenerators)
  config.include(SettingsHelper)
  config.before(:all) do
    FRAMEWORKS.each do |framework|
      AUTOMATION_TYPES.each do |automation|
        [true, false].each do |visual|
          settings = create_settings(framework:, automation:, visual:)
          generate_framework(settings)
        end
      end
    end
  end

  config.after(:all) do
    FRAMEWORKS.each do |framework|
      AUTOMATION_TYPES.each do |automation|
        [true, false].each do |visual|
          settings = create_settings(framework:, automation:, visual:)
          FileUtils.rm_rf(settings[:name])
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby_raider-0.9.4 spec/spec_helper.rb
ruby_raider-0.9.3 spec/spec_helper.rb
ruby_raider-0.9.2 spec/spec_helper.rb
ruby_raider-0.9.1 spec/spec_helper.rb
ruby_raider-0.9.0 spec/spec_helper.rb