Sha256: c1d2f248e5b10456c0b455bb426813c171ae4271101d3b8d87e5a28190cf077c

Contents?: true

Size: 921 Bytes

Versions: 17

Compression:

Stored size: 921 Bytes

Contents

# frozen_string_literal: true

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

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

RSpec.configure do |config|
  config.include(InvokeGenerators)
  config.include(SettingsHelper)
  # rubocop:disable RSpec/BeforeAfterAll
  config.before(:all) do
    FRAMEWORKS.each do |framework|
      AUTOMATION_TYPES.each do |automation|
        settings = create_settings(framework:, automation:)
        generate_framework(settings)
      end
    end
  end

  config.after(:all) do
    FRAMEWORKS.each do |framework|
      AUTOMATION_TYPES.each do |automation|
        settings = create_settings(framework:, automation:)
        FileUtils.rm_rf(settings[:name])
      end
    end
  end
end
# rubocop:enable RSpec/BeforeAfterAll

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ruby_raider-1.1.1 spec/integration/spec_helper.rb
ruby_raider-1.1.0 spec/integration/spec_helper.rb
ruby_raider-1.0.9 spec/integration/spec_helper.rb
ruby_raider-1.0.8 spec/integration/spec_helper.rb
ruby_raider-1.0.7 spec/integration/spec_helper.rb
ruby_raider-1.0.6 spec/integration/spec_helper.rb
ruby_raider-1.0.5 spec/integration/spec_helper.rb
ruby_raider-1.0.4 spec/integration/spec_helper.rb
ruby_raider-1.0.3 spec/integration/spec_helper.rb
ruby_raider-1.0.2 spec/integration/spec_helper.rb
ruby_raider-1.0.1 spec/integration/spec_helper.rb
ruby_raider-1.0.0 spec/integration/spec_helper.rb
ruby_raider-0.9.9 spec/integration/spec_helper.rb
ruby_raider-0.9.8 spec/integration/spec_helper.rb
ruby_raider-0.9.7 spec/integration/spec_helper.rb
ruby_raider-0.9.6 spec/integration/spec_helper.rb
ruby_raider-0.9.5 spec/integration/spec_helper.rb