Sha256: 5bbe70bd37a712e87473f5a6598aa1c9110ae6d64cdb1e9aef5142ca239f222c

Contents?: true

Size: 749 Bytes

Versions: 35

Compression:

Stored size: 749 Bytes

Contents

# frozen_string_literal: true

namespace :eac_rails_base0 do
  namespace :gems do
    desc <<~DESCRIPTION
      Minitest and RSpec for application and local gems.

      Use GEMS environment variable to test only selected gems. Example:

        rake eac_rails_base0:gems:test_all GEMS=gem1_name,gem2_name
    DESCRIPTION
    task test_all: :environment do
      require 'eac_ruby_gems_utils/tests/multiple'
      gems = ::EacRailsBase0::Gems.all
      ENV['GEMS'].if_present { |v| v.to_s.split(',').map(&:strip) }.if_present do |gem_names|
        gems = gems.select { |gem| gem_names.include?(gem.to_s) }
      end
      tests = ::EacRubyGemsUtils::Tests::Multiple.new(gems)
      raise 'Some test did not pass' unless tests.ok?
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
eac_rails_base0-0.57.0 lib/tasks/eac_rails_base0/gems.rake
eac_rails_base0-0.56.0 lib/tasks/eac_rails_base0/gems.rake
eac_rails_base0-0.55.3 lib/tasks/eac_rails_base0/gems.rake
eac_rails_base0-0.55.2 lib/tasks/eac_rails_base0/gems.rake
eac_rails_base0-0.55.1 lib/tasks/eac_rails_base0/gems.rake
eac_rails_base0-0.55.0 lib/tasks/eac_rails_base0/gems.rake
eac_rails_base0-0.54.0 lib/tasks/eac_rails_base0/gems.rake
eac_rails_base0-0.53.0 lib/tasks/eac_rails_base0/gems.rake
eac_rails_base0-0.52.3 lib/tasks/eac_rails_base0/gems.rake
eac_rails_base0-0.52.2 lib/tasks/eac_rails_base0/gems.rake
eac_rails_base0-0.52.1 lib/tasks/eac_rails_base0/gems.rake
eac_rails_base0-0.52.0 lib/tasks/eac_rails_base0/gems.rake
eac_rails_base0-0.51.0 lib/tasks/eac_rails_base0/gems.rake
eac_rails_base0-0.50.0 lib/tasks/eac_rails_base0/gems.rake
eac_rails_base0-0.49.0 lib/tasks/eac_rails_base0/gems.rake
eac_rails_base0-0.48.1 lib/tasks/eac_rails_base0/gems.rake
eac_rails_base0-0.48.0 lib/tasks/eac_rails_base0/gems.rake
eac_rails_base0-0.47.0 lib/tasks/eac_rails_base0/gems.rake
eac_rails_base0-0.46.0 lib/tasks/eac_rails_base0/gems.rake
eac_rails_base0-0.45.0 lib/tasks/eac_rails_base0/gems.rake