Sha256: 89d9a28df0d9918a02a4451392e73501840942ffbe2123032709fdf2b5b9de5c

Contents?: true

Size: 1.09 KB

Versions: 13

Compression:

Stored size: 1.09 KB

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].product([true, false]) do |examples, visual|
          settings = create_settings(framework: framework, automation: automation, examples: examples, visual: visual)
          generate_framework(settings)
        end
      end
    end
  end

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ruby_raider-0.7.3 spec/spec_helper.rb
ruby_raider-0.7.2 spec/spec_helper.rb
ruby_raider-0.7.1 spec/spec_helper.rb
ruby_raider-0.7.0 spec/spec_helper.rb
ruby_raider-0.6.9 spec/spec_helper.rb
ruby_raider-0.6.8 spec/spec_helper.rb
ruby_raider-0.6.7 spec/spec_helper.rb
ruby_raider-0.6.6 spec/spec_helper.rb
ruby_raider-0.6.5 spec/spec_helper.rb
ruby_raider-0.6.4 spec/spec_helper.rb
ruby_raider-0.6.3 spec/spec_helper.rb
ruby_raider-0.6.2 spec/spec_helper.rb
ruby_raider-0.6.1 spec/spec_helper.rb